M

RebarCrankTypeUtils.GetCrankRatio

Description:
Gets the crank ratio value.
Remarks:
The crank slope is 1/crankRatio.
public static double GetCrankRatio(
	Document document,
	ElementId rebarCrankTypeId
)
  • document
    The document.
  • rebarCrankTypeId
    The Rebar Crank Type id.
Return Value Double Returns the crank ratio value.
  • The rebarCrankTypeId doesn't represent a valid Rebar Crank Type. It should be an ElementType of BuiltInCategory.OST_RebarCrankType category.
  • A non-optional argument was null