Viewport.Create
Description:
Creates a new Viewport at a given location on a sheet.
Creates a new Viewport at a given location on a sheet.
Remarks:
Use [!:Autodesk::Revit::DB::ScheduleSheetInstance::Create()] to add schedules to sheets.
Use [!:Autodesk::Revit::DB::ScheduleSheetInstance::Create()] to add schedules to sheets.
-
documentThe document to which the new Viewport will be added.
-
viewSheetIdThe ViewSheet on which the new Viewport will be placed.
-
viewIdThe view shown in the Viewport.
-
pointThe new Viewport will be centered on this point.
-
viewSheetId is not a ViewSheet. -or- viewId cannot be added to the ViewSheet. -or- Plan view creation is not allowed in this family.
-
A non-optional argument was null
-
This method may not be called during dynamic update.
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
-
The document has no open transaction.