Create copy of mapping template with new name.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
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. |
