SetActiveTemplate Method


IFCCategory Template Set Active Template Method

Sets the mapping template element to be the active mapping template for its document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public void SetActiveTemplate()
Exceptions
Exception Condition
InvalidOperationException Invalid use of in-session template.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →