Retrieve one geometric primitive contained in the element given a reference.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public GeometryObject GetGeometryObjectFromReference( Reference reference )
Parameters
- reference Reference
- The geometric object referenced by this instance will be retrieved from the model.
Return Value
GeometryObjectThe geometric object referenced by the input reference.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The id of this element is not same as that referenced by reference |
| ArgumentNullException | A non-optional argument was null |
| InvalidOperationException | The element id held by the input reference is not same as the id of this element. The geometric information could not be taken for this element. |
