Revit API 차이점

다음 표에는 표준 Revit API 및 Revit Macro API 간의 차이점이 요약되어 있습니다.

기능 표준 Revit API Revit 매크로 API
선언 IExternalCommand 인터페이스 및 해당 Execute 메서드를 구현해야 합니다. 매개변수 및 보이드 반환 형식이 없는 공용 메서드를 ThisApplication 또는 ThisDocument 클래스에서 선언합니다.
Application 객체 externalCommandData.Application을 통해 Application 객체에 액세스합니다. C#, VB.NET, Ruby 및 Python에서 Application 키워드는 응용프로그램 레벨 매크로의 응용프로그램 객체를 가리킵니다. 문서 레벨 매크로의 경우 Document.Application은 Application 객체를 가리킵니다.
리본 API 외부 응용프로그램은 외부 응용프로그램을 통해 각 외부 명령에 대한 RibbonPanels, RibbonItem, PulldownButton 및 PushButton을 작성할 수 있습니다. 지원되지 않습니다.