Gets the Rebar Shape id for the bar with index barPositionIndex.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public ElementId GetShapeIdAtIndex( int barPositionIndex )
Parameters
- barPositionIndex Int32
- An index between 0 and (NumberOfBarPositions-1).
Return Value
ElementIdGets the ElementId of the Rebar Shape for the bar with index barPositionIndex.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | barPositionIndex is not in the range [ 0, NumberOfBarPositions-1 ]. -or- The bar at barPositionIndex index is excluded. |