Rebar.GetBarIndexFromReference
Method
Description:
Given a reference that represents a part of a bar, this method will return the bar index.
Given a reference that represents a part of a bar, this method will return the bar index.
Remarks:
The method returns an index between 0 and NumberOfBarPositions - 1 if it the given reference represents a part of a bar. Otherwise will return -1.
The method returns an index between 0 and NumberOfBarPositions - 1 if it the given reference represents a part of a bar. Otherwise will return -1.
Parameters
Parameter | Type | Description |
---|---|---|
barReference | Reference | The Reference of the Rebar element. |
Return Value
Type | Description |
---|---|
Int32 | The bar index the reference refers to. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |