| Revit 2019.2 API |
| SteelElementProperties..::..GetReference Method |
| SteelElementProperties Class See Also |
This method will return the reference for the given fabrication id.
Namespace: Autodesk.Revit.DB.Steel
Assembly: RevitAPI (in RevitAPI.dll) Version: 19.0.0.0 (19.2.0.66)
Since:
2019
Syntax
| C# |
|---|
public static Reference GetReference( Document aDoc, Guid guid ) |
| Visual Basic |
|---|
Public Shared Function GetReference ( _ aDoc As Document, _ guid As Guid _ ) As Reference |
| Visual C++ |
|---|
public: static Reference^ GetReference( Document^ aDoc, Guid guid ) |
Parameters
- aDoc
- Type: Autodesk.Revit.DB..::..Document
Document in which to search for the reference.
- guid
- Type: System..::..Guid
The fabrication id for which a reference is required.
Return Value
The reference to the element or subelement corresponding to the given id.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |