RebarCrankTypeUtilsGetCrankLengthMultiplier Method |
Gets the crank length multiplier value.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntaxpublic static double GetCrankLengthMultiplier(
Document document,
ElementId rebarCrankTypeId
)
Public Shared Function GetCrankLengthMultiplier (
document As Document,
rebarCrankTypeId As ElementId
) As Double
public:
static double GetCrankLengthMultiplier(
Document^ document,
ElementId^ rebarCrankTypeId
)
static member GetCrankLengthMultiplier :
document : Document *
rebarCrankTypeId : ElementId -> float
Parameters
- document Document
-
The document.
- rebarCrankTypeId ElementId
-
The Rebar Crank Type id.
Return Value
Double
Returns the crank length multiplier value.
ExceptionsException | 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
|
See Also