Get the parameter value for a bar at the specified index.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public ParameterValue GetParameterValueAtIndex( ElementId paramId, int barPositionIndex )
Parameters
- paramId ElementId
- The parameter Id.
- barPositionIndex Int32
- The bar index in the rebar distribution. Accepts only values between 0 and NumberOfBarPositions-1.
Return Value
ParameterValueThe ParameterValue for given parameterId and barPositionIndex.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | barPositionIndex should be in range [ 0, NumberOfBarPositions-1 ] and the bar at barPositionIndex should be included. |