Revit 2026 API
Rebar |
Sets the crank length multiplier value.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static void SetCrankLengthMultiplier( Document document, ElementId rebarCrankTypeId, double crankLengthMultiplier )
Public Shared Sub SetCrankLengthMultiplier ( document As Document, rebarCrankTypeId As ElementId, crankLengthMultiplier As Double )
public: static void SetCrankLengthMultiplier( Document^ document, ElementId^ rebarCrankTypeId, double crankLengthMultiplier )
static member SetCrankLengthMultiplier : document : Document * rebarCrankTypeId : ElementId * crankLengthMultiplier : float -> unit
Parameters

Exception | Condition |
---|---|
ArgumentException | The rebarCrankTypeId doesn't represent a valid Rebar Crank Type. It should be an ElementType of BuiltInCategory.OST_RebarCrankType category. |
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | The given value for crankLengthMultiplier must be positive. |
See Also