<Code Lib>
2022 Method
Changes 0
M

Rebar.GetParameterValueAtIndex

Description:
Get the parameter value for a bar at the specified index. The parameter Id. The bar index in the rebar distribution. Accepts only values between 0 and NumberOfBarPositions-1. The ParameterValue for given parameterId and barPositionIndex.
Remarks:
If the DistributionType is Uniform then the returned ParameterValue is the same no matter the index. If the DistributionType is VaryingLength then the returned ParameterValue is evaluated at the given index.

public ParameterValue GetParameterValueAtIndex(
	ElementId paramId,
	int barPositionIndex
)

  • paramId
    The parameter Id.
  • Int32
    barPositionIndex
    The bar index in the rebar distribution. Accepts only values between 0 and NumberOfBarPositions-1.
Return Value ParameterValue The ParameterValue for given parameterId and barPositionIndex.

Loading…