ScheduleSheetInstance.Create
Description:
Create an instance of a schedule on a sheet.
Create an instance of a schedule on a sheet.
Overloads (2):
public static ScheduleSheetInstance Create(
Document document,
ElementId viewSheetId,
ElementId scheduleId,
XYZ origin
)
-
documentThe document
-
viewSheetIdThe id of the sheet where the schedule will be placed.
-
scheduleIdThe id of the schedule view.
-
originLocation on the sheet where the schedule will be placed.
-
scheduleId is not a ViewSchedule that can be added to sheets. "Internal" schedules are not user-visible but are filtered by sheet or used to manage Revisions, which cannot be added to sheets. -or- viewSheetId is not a ViewSheet.
-
A non-optional argument was null
-
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.