Given a reference that represents a part of a bar, this method will return the bar index.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public int GetBarIndexFromReference( Reference barReference )
Parameters
- barReference Reference
- The Reference of the Rebar element.
Return Value
Int32The bar index the reference refers to.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |