MakeTransientElements Method


Document Make Transient Elements Method

This method encapsulates the process of creating transient elements in the document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void MakeTransientElements(
	ITransientElementMaker maker
)

Parameters

maker ITransientElementMaker
An instance of a class that implements the ITransientElementMaker interface. The maker will be called to create element(s) which would become transient.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
InvalidOperationException This Document has an open editing transaction and is accepting changes. -or- This Document is read-only: It cannot be modified.
Remarks
The method establishes a context within which transient elements will be created and then invokes the given maker object to create the elements. For more information refer to the IsTransient method.
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 →