Creates a new instance of a panel schedule template.
Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- document
- Type: Autodesk.Revit.DBDocument
The document where the element will be created and added.
- type
- Type: Autodesk.Revit.DB.ElectricalPanelScheduleType
The panel schedule type.
- config
- Type: Autodesk.Revit.DB.ElectricalPanelConfiguration
The panel configuration type.
- strName
- Type: SystemString
The name of the panel schedule template to be created.
Return Value
The newly created panel schedule template element.Remarks
If the given name has already been used by existing panel schedule templates, a unique name will be used for the newly created template.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | The type is not valid for this element. -or- The config is not valid for panel schedule type type of this template. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |
Autodesk.Revit.ExceptionsArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |