Create copy of mapping template with new name.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public IFCCategoryTemplate CopyTemplate( Document document, string copyTemplateName )
Parameters
- document Document
- A Revit document to save the copied template.
- copyTemplateName String
- A name for copied template name.
Return Value
IFCCategoryTemplateThe copied mapping template element.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The name already exists. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Failed to create IFCCategoryTemplate element. |