Rebar.GetParameterValueAtIndex
Description:
Get the parameter value for a bar at the specified index.
Get the parameter value for a bar at the specified index.
Remarks:
For rebar sets which don't have varying length bars the returned ParameterValue is the same no matter the index. For rebar sets which have varying length bars the returned ParameterValue is evaluated at the given index.
For rebar sets which don't have varying length bars the returned ParameterValue is the same no matter the index. For rebar sets which have varying length bars the returned ParameterValue is evaluated at the given index.
public ParameterValue GetParameterValueAtIndex(
ElementId paramId,
int barPositionIndex
)
-
paramIdThe parameter Id.
-
Int32barPositionIndexThe bar index in the rebar distribution. Accepts only values between 0 and NumberOfBarPositions-1.
-
A non-optional argument was null
-
barPositionIndex should be in range [ 0, NumberOfBarPositions-1 ] and the bar at barPositionIndex should be included.