GenerateInstanceFromTemplate Method


Assigns the data from the template to the instance and performs any tasks specific to the instance (3rd phase, borders, etc)

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public void GenerateInstanceFromTemplate(
	ElementId templateId
)
Visual Basic
Public Sub GenerateInstanceFromTemplate ( _
	templateId As ElementId _
)
Visual C++
public:
void GenerateInstanceFromTemplate(
	ElementId^ templateId
)

Parameters

templateId
Type: Autodesk.Revit.DBElementId
Element id of the template element.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →