This method will return the reference for the given fabrication id.
Namespace: Autodesk.Revit.DB.SteelAssembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.0.0.377)
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 |