UIApplication Class


Represents an active session of the Autodesk Revit user interface, providing access to UI customization methods, events, the main window, and the active document.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public class UIApplication : IDisposable
Visual Basic
Public Class UIApplication _
	Implements IDisposable
Visual C++
public ref class UIApplication : IDisposable

Remarks

You can access documents from the database level Application object, obtained from the Application property. If you have an instance of the database level Application object, you can construct a UIApplication instance from it.

Inheritance Hierarchy

SystemObject
  Autodesk.Revit.UIUIApplication
    Autodesk.Revit.UI.MacrosApplicationEntryPoint

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →