PanelScheduleTemplate.Create
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.
public static PanelScheduleTemplate Create(
Document document,
PanelScheduleType type,
PanelConfiguration config,
string strName
)
-
documentThe document where the element will be created and added.
-
typeThe panel schedule type.
-
configThe panel configuration type.
-
StringstrNameThe name of the panel schedule template to be created.
-
The type is not valid for this element. -or- The config is not valid for panel schedule type type of this template.
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration