Revit 2026 API
UIDocumentActive |
The currently active view of the currently active document.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public View ActiveView { get; set; }
Public Property ActiveView As View Get Set
public: property View^ ActiveView { View^ get (); void set (View^ value); }
member ActiveView : View with get, set
Property Value
View
Exception | Condition |
---|---|
ArgumentNullException | When setting the property: If the 'view' argument is NULL. |
ArgumentException |
When setting the property:
|
InvalidOperationException | When setting the property:
|

This property is applicable to the currently active document only. Returns if this document doesn't represent the active document.
The active view can only be changed when:
- There is no open transaction.
- IsModifiable is false.
- IsReadOnly is false.
- ViewActivating, ViewActivated, and any pre-action of events (such as DocumentSaving or DocumentClosingevents) are not being handled.
See Also