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

Document.GetElement(String)

Method
Description:
Gets the Element referenced by a unique id string.
Remarks:
null will be returned if the input id string doesn't reference to a valid Element.
Syntax
public Element GetElement(
	string uniqueId
)
Parameters
Parameter Type Description
uniqueId String The element unique id, whose referenced Element will be retrieved from the model. <li><a href="f9a9cb77-6913-6d41-ecf5-4398a24e8ff8.htm">UniqueId</a></li>
Return Value
Type Description
Element The element referenced by the input argument.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null