GetElement
Method
Description:
Gets the Element referenced by the input reference.
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.
nullNothingnullptra null reference (Nothing in Visual Basic) will be returned if the input reference doesn't reference to a valid Element.
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 |