Revit 2026 API
View |
Returns the ElementIds of Viewports on this sheet.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public ICollection<ElementId> GetAllViewports()
Public Function GetAllViewports As ICollection(Of ElementId)
public: ICollection<ElementId^>^ GetAllViewports()
member GetAllViewports : unit -> ICollection<ElementId>
Return Value
ICollectionElementIdThe Viewports on this sheet.
Schedules on the sheet are not returned by this method. Use ScheduleSheetInstance.OwnerViewId to find the sheet on which a schedule is placed.
See Also