The UIApplication type exposes the following members.

Constructors

  NameDescription
Public methodUIApplication
Use a database level Application to construct a UI-level Application.

Methods

  NameDescription
Public methodCanPostCommand
Identifies if the given command can be posted, using PostCommand(RevitCommandId).
Public methodCreateAddInCommandBinding
Creates a new AddInCommandBinding.
Public methodCreateRibbonPanel(String)
Create a new RibbonPanel on the Add-Ins tab.
Public methodCreateRibbonPanel(String, String)
Create a new RibbonPanel on the specified tab.
Public methodCreateRibbonPanel(Tab, String)
Create a new RibbonPanel on the designated standard Revit tab.
Public methodCreateRibbonTab
Creates a new tab on the Revit user interface.
Public methodDispose
Releases all resources used by the UIApplication
Public methodStatic memberDoDragDrop(ICollection<(Of <<'(String>)>>))
Initiates a drag and drop operation of a collection of file names on the Revit user interface.
Public methodStatic memberDoDragDrop(Object, IDropHandler)
Initiates a drag and drop operation with a custom drop implementation.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetDockablePane
Gets a DockablePane object by its ID.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetRibbonPanels()()()()
Get all the custom Panels on Add-Ins tab of Revit.
Public methodGetRibbonPanels(String)
Get all the custom Panels on a designated Revit tab.
Public methodGetRibbonPanels(Tab)
Get all the custom Panels on a designated standard Revit tab.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoadAddIn
Loads add-ins from the given manifest file.
Public methodLoadPackageContents
Loads add-ins from the given packageContents.xml file.
Public methodOpenAndActivateDocument(String)
Opens and activates a Revit document, include both local document or cloud document.
Public methodOpenAndActivateDocument(ModelPath, OpenOptions, Boolean)
Opens and activates a Revit document, include both local document or cloud document.
Public methodOpenAndActivateDocument(ModelPath, OpenOptions, Boolean, IOpenFromCloudCallback)
Opens and activates a Revit document, include both local document or cloud document.
Public methodPostCommand
Posts the command to the Revit message queue to be invoked when control returns from the current API context.
Public methodRegisterDockablePane
Adds a new dockable pane to the Revit user interface.
Public methodRemoveAddInCommandBinding
Removes an AddInCommandBinding.
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.
Public propertyActiveUIDocument
Provides access to an object that represents the currently active project.
Public propertyApplication
Returns the database level Application represented by this UI level Application.
Public propertyDrawingAreaExtents
Get the rectangle that represents the screen pixel coordinates of drawing area.
Public propertyIsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public propertyIsViewerModeActive
Determines if Revit session is in Viewer mode.
Public propertyLoadedApplications
Returns an array of successfully loaded external applications.
Public propertyMainWindowExtents
Get the rectangle that represents the screen pixel coordinates of the Revit main window.
Public propertyMainWindowHandle
Get the handle of the Revit main window.
Public propertyProductIsRS
Identifies if the current Revit product has an RS designation. Most add-ins will not need to use this information.

Events

  NameDescription
Public eventApplicationClosing
Subscribe to the ApplicationClosing event to be notified when the Revit application is just about to be closed.
Public eventDialogBoxShowing
Subscribe to the DialogBoxShowing event to be notified when Revit is just about to show a dialog box or a message box.
Public eventDisplayingOptionsDialog
Subscribe to the options dialog displaying event to be notified when Revit options dialog is displaying.
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.
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.
Public eventFabricationPartBrowserChanged
Subscribe to MEP Fabrication part browser changed event to be notified when MEP Fabrication part browser is updated.
Public eventFormulaEditing
Subscribe to the FormulaEditing event to be notified when the edit formula button has been clicked.
Public eventIdling
Subscribe to the Idling event to be notified when Revit is not in an active tool or transaction.
Public eventTransferredProjectStandards
Subscribe to the TransferredProjectStandards event to be notified after the scope of a Transfer Project Standards operation has been finalized.
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.
Public eventViewActivated
Subscribe to the ViewActivated event to be notified immediately after Revit has finished activating a view of a document.
Public eventViewActivating
Subscribe to the ViewActivating event to be notified when Revit is just about to activate a view of a document.

See Also