Revit 2026 API
Fabrication |
Gets the identifier of the attached component for the specified rod.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public LinkElementId GetRodAttachedElementId( int rodIndex )
Public Function GetRodAttachedElementId ( rodIndex As Integer ) As LinkElementId
public: LinkElementId^ GetRodAttachedElementId( int rodIndex )
member GetRodAttachedElementId : rodIndex : int -> LinkElementId
Parameters
- rodIndex Int32
- The index of the specified rod.
Return Value
LinkElementId| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | the index rodIndex is should be in range of rod count. |
| InvalidOperationException | The rods do not attached to any structue. |
See Also