UIDocument Active |
The currently active view of the currently active document.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)


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.
