RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Document

MakeTransientElements

Method
Description:
This method encapsulates the process of creating transient elements in the document.
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.
Syntax
public void MakeTransientElements(
	ITransientElementMaker maker
)
Parameters
Parameter Type Description
maker Autodesk.Revit.DB.ITransientElementMaker An instance of a class that implements the ITransientElementMaker interface. The maker will be called to create element(s) which would become transient.
Return Value
Exceptions
Exception Condition
Autodesk.Revit.Exceptions.ArgumentNullException A non-optional argument was null
Autodesk.Revit.Exceptions.InvalidOperationException This Document has an open editing transaction and is accepting changes. -or- This Document is read-only: It cannot be modified.