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

Document.GetElement(ElementId)

Method
Description:
Gets the Element referenced by the input ElementId.
Remarks:
null will be returned if the input ElementId doesn't reference to a valid Element.
Syntax
Parameters
Parameter Type Description
id ElementId The ElementId, 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