The ApplicationEntryPoint type exposes the following members.

Constructors

  NameDescription
Public methodApplicationEntryPoint
Initializes a new instance of the ApplicationEntryPoint class

Methods

  NameDescription
Public methodCanPostCommand
Identifies if the given command can be posted, using PostCommand(RevitCommandId).
(Inherited from UIApplication.)
Public methodCreateAddInCommandBinding
Creates a new AddInCommandBinding.
(Inherited from UIApplication.)
Public methodCreateRibbonPanel(String) (Overrides UIApplication..::..CreateRibbonPanel(String).)
Public methodCreateRibbonPanel(String, String) (Overrides UIApplication..::..CreateRibbonPanel(String, String).)
Public methodCreateRibbonPanel(Tab, String) (Overrides UIApplication..::..CreateRibbonPanel(Tab, String).)
Public methodCreateRibbonTab (Overrides UIApplication..::..CreateRibbonTab(String).)
Public methodDispose (Inherited from UIApplication.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFinishInitializationEO
For Revit Macros internal use only.
Public methodGetDockablePane
Gets a DockablePane object by its ID.
(Inherited from UIApplication.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetRibbonPanels()()()() (Overrides UIApplication..::..GetRibbonPanels()()()().)
Public methodGetRibbonPanels(String) (Overrides UIApplication..::..GetRibbonPanels(String).)
Public methodGetRibbonPanels(Tab) (Overrides UIApplication..::..GetRibbonPanels(Tab).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
For Revit Macros internal use only.
Public methodLoadAddIn
Loads add-ins from the given manifest file.
(Inherited from UIApplication.)
Public methodLoadPackageContents
Loads add-ins from the given packageContents.xml file.
(Inherited from UIApplication.)
Public methodOnShutdownEO
For Revit Macros internal use only.
Public methodOpenAndActivateDocument(String)
Opens and activates a Revit document, include both local document or cloud document.
(Inherited from UIApplication.)
Public methodOpenAndActivateDocument(ModelPath, OpenOptions, Boolean)
Opens and activates a Revit document, include both local document or cloud document.
(Inherited from UIApplication.)
Public methodOpenAndActivateDocument(ModelPath, OpenOptions, Boolean, IOpenFromCloudCallback)
Opens and activates a Revit document, include both local document or cloud document.
(Inherited from UIApplication.)
Public methodPostCommand
Posts the command to the Revit message queue to be invoked when control returns from the current API context.
(Inherited from UIApplication.)
Public methodRegisterDockablePane
Adds a new dockable pane to the Revit user interface.
(Inherited from UIApplication.)
Public methodRemoveAddInCommandBinding
Removes an AddInCommandBinding.
(Inherited from UIApplication.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyActiveAddInId
Get current active external application or external command id.
(Inherited from UIApplication.)
Public propertyActiveUIDocument
Provides access to an object that represents the currently active project.
(Inherited from UIApplication.)
Public propertyAddinFolder
The full path to the Revit Macros module.
Public propertyApplication
Returns the database level Application represented by this UI level Application.
(Inherited from UIApplication.)
Public propertyDrawingAreaExtents
Get the rectangle that represents the screen pixel coordinates of drawing area.
(Inherited from UIApplication.)
Public propertyIsValidObject
Specifies whether the .NET object represents a valid Revit entity.
(Inherited from UIApplication.)
Public propertyIsViewerModeActive
Determines if Revit session is in Viewer mode.
(Inherited from UIApplication.)
Public propertyLoadedApplications
Returns an array of successfully loaded external applications.
(Inherited from UIApplication.)
Public propertyMainWindowExtents
Get the rectangle that represents the screen pixel coordinates of the Revit main window.
(Inherited from UIApplication.)
Public propertyMainWindowHandle
Get the handle of the Revit main window.
(Inherited from UIApplication.)
Public propertyProductIsRS
Identifies if the current Revit product has an RS designation. Most add-ins will not need to use this information.
(Inherited from UIApplication.)

Events

  NameDescription
Public eventApplicationClosing
Subscribe to the ApplicationClosing event to be notified when the Revit application is just about to be closed.
(Inherited from UIApplication.)
Public eventDialogBoxShowing
Subscribe to the DialogBoxShowing event to be notified when Revit is just about to show a dialog box or a message box.
(Inherited from UIApplication.)
Public eventDisplayingOptionsDialog
Subscribe to the options dialog displaying event to be notified when Revit options dialog is displaying.
(Inherited from UIApplication.)
Public eventDockableFrameFocusChanged
Subscribe to this event to be notified when a Revit GenericDockableFrame has gained focus or lost focus in the Revit user interface. This event is called only for API-created GenericDockableFrames.
(Inherited from UIApplication.)
Public eventDockableFrameVisibilityChanged
Subscribe to this event to be notified when a Revit GenericDockableFrame has been shown or hidden in the Revit user interface. This event is called only for API-created GenericDockableFrames.
(Inherited from UIApplication.)
Public eventFabricationPartBrowserChanged
Subscribe to MEP Fabrication part browser changed event to be notified when MEP Fabrication part browser is updated.
(Inherited from UIApplication.)
Public eventFormulaEditing
Subscribe to the FormulaEditing event to be notified when the edit formula button has been clicked.
(Inherited from UIApplication.)
Public eventIdling
Subscribe to the Idling event to be notified when Revit is not in an active tool or transaction.
(Inherited from UIApplication.)
Public eventTransferredProjectStandards
Subscribe to the TransferredProjectStandards event to be notified after the scope of a Transfer Project Standards operation has been finalized.
(Inherited from UIApplication.)
Public eventTransferringProjectStandards
Subscribe to the TransferringProjectStandards event to be notified before the scope of an impending Transfer Project Standards operation has been finalized in the Transfer Project Standards dialog.
(Inherited from UIApplication.)
Public eventViewActivated
Subscribe to the ViewActivated event to be notified immediately after Revit has finished activating a view of a document.
(Inherited from UIApplication.)
Public eventViewActivating
Subscribe to the ViewActivating event to be notified when Revit is just about to activate a view of a document.
(Inherited from UIApplication.)

See Also