MakeTransientElements Method


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

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

Syntax

C#
public void MakeTransientElements(
	ITransientElementMaker maker
)
Visual Basic
Public Sub MakeTransientElements ( _
	maker As ITransientElementMaker _
)
Visual C++
public:
void MakeTransientElements(
	ITransientElementMaker^ maker
)

Parameters

maker
Type: Autodesk.Revit.DBITransientElementMaker
An instance of a class that implements the ITransientElementMaker interface. The maker will be called to create element(s) which would become transient.

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.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException This Document has an open editing transaction and is accepting changes. -or- This Document is read-only: It cannot be modified.

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 →