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

Document.GetElement(Reference)

Method
Description:
Gets the Element referenced by the input reference.
Remarks:
null will be returned if the input reference doesn't reference to a valid Element.
Syntax
public Element GetElement(
	Reference reference
)
Parameters
Parameter Type Description
reference Reference The reference, whose referenced Element will be retrieved from the model.
Return Value
Type Description
Element The element referenced by the input argument.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null