PanelScheduleTemplate.Create
Method
Description:
Creates a new instance of a panel schedule template.
Creates a new instance of a panel schedule template.
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.
If the given name has already been used by existing panel schedule templates, a unique name will be used for the newly created template.
Syntax
public static PanelScheduleTemplate Create(
Document document,
PanelScheduleType type,
PanelConfiguration config,
string strName
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| document | Document | The document where the element will be created and added. |
| type | PanelScheduleType | The panel schedule type. |
| config | PanelConfiguration | The panel configuration type. |
| strName | String | The name of the panel schedule template to be created. |
Return Value
| Type | Description |
|---|---|
| PanelScheduleTemplate | The newly created panel schedule template element. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The type is not valid for this element. -or- The config is not valid for panel schedule type type of this template. |
| ArgumentNullException | A non-optional argument was null |
| ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |