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

GetElement

Method
Description:
Gets the Element referenced by the input reference.
Remarks:
nullNothingnullptra null reference (Nothing in Visual Basic) 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 Autodesk.Revit.DB.Reference The reference, whose referenced Element will be retrieved from the model.
Return Value
Type Description
Autodesk.Revit.Exceptions.ArgumentNullException The element referenced by the input argument.
Exceptions
Exception Condition
Autodesk.Revit.Exceptions.ArgumentNullException A non-optional argument was null