<Code Lib>
2026 Method
Changes 0
M

RebarFreeFormAccessor.GetShapeIdAtIndex

Description:
Gets the Rebar Shape id for the bar with index barPositionIndex.
Remarks:
If this function is called for a bar that isn't included, this function will throw exception.

public ElementId GetShapeIdAtIndex(
	int barPositionIndex
)

  • Int32
    barPositionIndex
    An index between 0 and (NumberOfBarPositions-1).
Return Value ElementId Gets the ElementId of the Rebar Shape for the bar with index barPositionIndex.

  • barPositionIndex is not in the range [ 0, NumberOfBarPositions-1 ]. -or- The bar at barPositionIndex index is excluded.

Loading…