GetOpenUIViews Method


UIDocument Get Open UIViews Method

Get a list of all open view windows in the Revit user interface.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public IList<UIView> GetOpenUIViews()

Return Value

IList UIView
Remarks
A sheet view with an activated viewport will return the view associated with the activated viewport, not the sheet view.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →