Creates a new instance of panel schedule on sheet and adds it to the document.
Namespace: Autodesk.Revit.DB.ElectricalAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2011
Syntax
| C# |
|---|
public static PanelScheduleSheetInstance Create( Document ADoc, ElementId scheduleId, View DBView ) |
| Visual Basic |
|---|
Public Shared Function Create ( _ ADoc As Document, _ scheduleId As ElementId, _ DBView As View _ ) As PanelScheduleSheetInstance |
| Visual C++ |
|---|
public: static PanelScheduleSheetInstance^ Create( Document^ ADoc, ElementId^ scheduleId, View^ DBView ) |
Parameters
- ADoc
- Type: Autodesk.Revit.DB..::..Document
- scheduleId
- Type: Autodesk.Revit.DB..::..ElementId
- DBView
- Type: Autodesk.Revit.DB..::..View
Return Value
The newly created panel schedule sheet instance element.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |