RebarCrankTypeUtilsSetCrankRatio Method |
Sets the crank ratio value.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntaxpublic static void SetCrankRatio(
Document document,
ElementId rebarCrankTypeId,
double crankRatio
)
Public Shared Sub SetCrankRatio (
document As Document,
rebarCrankTypeId As ElementId,
crankRatio As Double
)
public:
static void SetCrankRatio(
Document^ document,
ElementId^ rebarCrankTypeId,
double crankRatio
)
static member SetCrankRatio :
document : Document *
rebarCrankTypeId : ElementId *
crankRatio : float -> unit
Parameters
- document Document
-
The document.
- rebarCrankTypeId ElementId
-
The Rebar Crank Type id.
- crankRatio Double
-
The crank ratio value.
Exceptions
Remarks
The crank slope is 1/crankRatio.
See Also