2020 Members
Changes 6
M

UIApplication

Name Return Type Description Inherited From
M CanPostCommand(RevitCommandId) bool Identifies if the given command can be posted, using PostCommand(RevitCommandId) .
M CreateAddInCommandBinding(RevitCommandId) AddInCommandBinding Creates a new AddInCommandBinding.
M CreateRibbonPanel(String) RibbonPanel Create a new RibbonPanel on the Add-Ins tab.
M CreateRibbonPanel(String, String) RibbonPanel Create a new RibbonPanel on the specified tab.
M CreateRibbonPanel(Tab, String) RibbonPanel Create a new RibbonPanel on the designated standard Revit tab.
M CreateRibbonTab(String) None Creates a new tab on the Revit user interface.
M Dispose() None Releases all resources used by the UIApplication
M DoDragDrop(ICollection.String.) None Initiates a drag and drop operation of a collection of file names on the Revit user interface.
M DoDragDrop(Object, IDropHandler) None Initiates a drag and drop operation with a custom drop implementation.
M Equals None Determines whether the specified Object is equal to the current Object . (Inherited from Object .) Object
M GetDockablePane(DockablePaneId) DockablePane Gets a DockablePane object by its ID.
M GetHashCode None Serves as a hash function for a particular type. (Inherited from Object .) Object
M GetRibbonPanels.() List<RibbonPanel> Get all the custom Panels on Add-Ins tab of Revit.
M GetRibbonPanels(String) List<RibbonPanel> Get all the custom Panels on a designated Revit tab.
M GetRibbonPanels(Tab) List<RibbonPanel> Get all the custom Panels on a designated standard Revit tab.
M GetType None Gets the Type of the current instance. (Inherited from Object .) Object
M LoadAddIn(String) None Loads add-ins from the given manifest file.
M LoadPackageContents(String) None Loads add-ins from the given packageContents.xml file.
M OpenAndActivateDocument(String) The opened document. Opens and activates a Revit document, include both local document or cloud document.
M OpenAndActivateDocument(ModelPath, OpenOptions, Boolean) The opened document. Opens and activates a Revit document, include both local document or cloud document.
M OpenAndActivateDocument(ModelPath, OpenOptions, Boolean, IOpenFromCloudCallback) The opened document. Opens and activates a Revit document, include both local document or cloud document.
M PostCommand(RevitCommandId) None Posts the command to the Revit message queue to be invoked when control returns from the current API context.
M RegisterDockablePane(DockablePaneId, String, IDockablePaneProvider) None Adds a new dockable pane to the Revit user interface.
M RemoveAddInCommandBinding(RevitCommandId) None Removes an AddInCommandBinding.
M ToString None Returns a string that represents the current object. (Inherited from Object .) Object
Name Return Type Description Inherited From
P ActiveAddInId AddInId Get current active external application or external command id.
P ActiveUIDocument UIDocument Provides access to an object that represents the currently active project.
P Application Application Returns the database level Application represented by this UI level Application.
P DrawingAreaExtents Rectangle Get the rectangle that represents the screen pixel coordinates of drawing area.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P IsViewerModeActive bool Determines if Revit session is in Viewer mode.
P LoadedApplications ExternalApplicationArray Returns an array of successfully loaded external applications.
P MainWindowExtents Rectangle Get the rectangle that represents the screen pixel coordinates of the Revit main window.
P MainWindowHandle IntPtr Get the handle of the Revit main window.
P ProductIsRS bool Identifies if the current Revit product has an RS designation. Most add-ins will not need to use this information.