Share

UIApplication Methods

The UIApplication type exposes the following members.

Methods

 NameDescription
Public methodCanPostCommand Identifies if the given command can be posted, using PostCommand(RevitCommandId).
Public methodCreateAddInCommandBindingCreates a new AddInCommandBinding.
Public methodCode exampleCreateRibbonPanel(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 
Public methodStatic memberDoDragDrop(ICollection<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 methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetDockablePaneGets a DockablePane object by its ID.
Public methodGetHashCodeServes as the default hash function.
(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 methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLoadAddInLoads add-ins from the given manifest file.
Public methodLoadPackageContentsLoads add-ins from the given packageContents.xml file.
Public methodOpenAndActivateDocument(String) Opens and activates a Revit 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 methodRegisterContextMenuAdds a new context menu creator.
Public methodRegisterDockablePaneAdds a new dockable pane to the Revit user interface.
Public methodRemoveAddInCommandBindingRemoves an AddInCommandBinding.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Was this information helpful?