M

Viewport.Create

Description:
Creates a new Viewport at a given location on a sheet.
Remarks:
Use [!:Autodesk::Revit::DB::ScheduleSheetInstance::Create()] to add schedules to sheets.
public static Viewport Create(
	Document document,
	ElementId viewSheetId,
	ElementId viewId,
	XYZ point
)
  • document
    The document to which the new Viewport will be added.
  • viewSheetId
    The ViewSheet on which the new Viewport will be placed.
  • viewId
    The view shown in the Viewport.
  • point
    The new Viewport will be centered on this point.
Return Value Viewport The new Viewport.