Share

RebarCrankTypeUtils.GetCrankRatio Method

Gets the crank ratio value.


Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)

Syntax

C#

public static double GetCrankRatio(
	Document document,
	ElementId rebarCrankTypeId
)

Parameters

document  Document
The document.
rebarCrankTypeId  ElementId
The Rebar Crank Type id.

Return Value

Double
Returns the crank ratio value.

Exceptions

ExceptionCondition
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

Remarks

The crank slope is 1/crankRatio.

See Also

Reference

Was this information helpful?