2026 Class
Changes 6
C

UIControlledApplication

Description:
Represents the Autodesk Revit user interface, providing access to UI customization methods and events.
Remarks:
This class does not provide access to documents because it is provided to you through the ExternalApplication OnStartup()/OnShutdown() methods, and those methods are when it is not possible to work with Revit documents. You can work with documents by getting them from the UIApplication class; that class is obtained from events and ExternalCommand callbacks.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.UI.UIControlledApplication
Name Return Type Description Inherited From
E ApplicationClosing event Subscribe to the ApplicationClosing event to be notified when the Revit application is just about to be closed.
E DialogBoxShowing event Subscribe to the DialogBoxShowing event to be notified when Revit is just about to show a dialog box or a message box.
E DisplayingOptionsDialog event Subscribe to the options dialog displaying event to be notified when Revit options dialog is displaying.
E DockableFrameFocusChanged event Subscribe to GenericDockableFrame activated event to be notified when Revit GenericDockableFrame is active or inactive.
E DockableFrameVisibilityChanged event Subscribe to GenericDockableFrame showing or hiding event to be notified when Revit GenericDockableFrame is showing or hiding.
E FabricationPartBrowserChanged event Subscribe to MEP Fabrication part browser changed event to be notified when MEP Fabrication part browser is updated.
E FormulaEditing event Subscribe to the FormulaEditing event
E Idling event Subscribe to the Idling event to be notified when Revit is not in an active tool or transaction.
E SelectionChanged event Subscribe to the SelectionChanged event to be notified after the selection was changed.
E ThemeChanged event Subscribe to the ThemeChanged event to be notified after the theme was changed.
E TransferredProjectStandards event Subscribe to the TransferredProjectStandards event to be notified after the scope of a Transfer Project Standards operation has been finalized in the Transfer Project Standards dialog.
E TransferringProjectStandards event Subscribe to the TransferringProjectStandards event to be notified before the scope of an impending Transfer Project Standards operation has been finalized.
E ViewActivated event Subscribe to the ViewActivated event to be notified immediately after Revit has finished activating a view of a document.
E ViewActivating event Subscribe to the ViewActivating event to be notified when Revit is just about to activate a view of a document.
Name Return Type Description Inherited From
M CreateAddInCommandBinding(RevitCommandId) AddInCommandBinding
M CreateRibbonPanel(String) RibbonPanel
M CreateRibbonPanel(String, String) RibbonPanel
M CreateRibbonPanel(Tab, String) RibbonPanel
M CreateRibbonTab(String) None
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetDockablePane(DockablePaneId) DockablePane
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetRibbonPanels() List<RibbonPanel>
M GetRibbonPanels(String) List<RibbonPanel>
M GetRibbonPanels(Tab) List<RibbonPanel>
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M LoadAddIn(String) None
M LoadPackageContents(String) None
M RegisterContextMenu(String, IContextMenuCreator) None
M RegisterDockablePane(DockablePaneId, String, IDockablePaneProvider) None
M RemoveAddInCommandBinding(RevitCommandId) None
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P ActiveAddInId AddInId
P ControlledApplication ControlledApplication Returns the database level ControlledApplication represented by this UI-level ControlledApplication.
P IsLateAddinLoading bool Indicates whether this add-in is loaded on the fly or not. If it is loaded when Revit is starting up, it is false, otherwise it should be true.
P IsViewerModeActive bool Identifies if the current Revit session is running in Viewer mode
P LoadedApplications ExternalApplicationArray
P MainWindowHandle IntPtr
P ProductIsRS bool