Sets the crank offset length at the indicated bar end as an override value.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public void SetCrankOffsetLengthOverride(
int end,
double crankOffsetLength
)
Parameters
- end Int32
-
The bar end.
- crankOffsetLength Double
-
The crank offset length.
Exceptions
| Exception | Condition |
|---|
| ArgumentOutOfRangeException |
end must be 0 or 1.
|
| InvalidOperationException |
The bar does not have a valid Rebar Crank Type at the end.
-or-
The ability to override crank lengths is not enabled for this rebar instance. Use enableCrankLengthOverride(true) to enable it.
|
Remarks
When the crank offset length is set, the crank ratio is keeping the same value. The angled length and straight length are adjusted.
See Also
Reference