RebarBarType.SetCrankLength
Description:
Sets the crank length for the specified Rebar Crank Type.
Sets the crank length for the specified Rebar Crank Type.
public void SetCrankLength(
ElementId rebarCrankTypeId,
double length
)
-
rebarCrankTypeIdThe Rebar Crank Type id. Interactions with Rebar Crank Types can be done with the functions in RebarCrankTypeUtils.
-
DoublelengthThe new value of the crank length.
-
The rebarCrankTypeId doesn't represent a valid Rebar Crank Type. It should be an ElementType of BuiltInCategory.OST_RebarCrankType category. -or- For the specified Rebar Crank Type is auto calculated and the cannot be manually set.
-
A non-optional argument was null
-
The given value for length must be positive.