Creates a new Viewport at a given location on a sheet.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static Viewport Create(
Document document,
ElementId viewSheetId,
ElementId viewId,
XYZ point
)
Parameters
- document Document
-
The document to which the new Viewport will be added.
- viewSheetId ElementId
-
The ViewSheet on which the new Viewport will be placed.
- viewId ElementId
-
The view shown in the Viewport.
- point XYZ
-
The new Viewport will be centered on this point.
Return Value
Viewport
The new Viewport.
Exceptions
Remarks
Use
[!:Autodesk::Revit::DB::ScheduleSheetInstance::Create()] to add schedules to sheets.
See Also
Reference