Returns or changes the length factor of a dimension style. Length factor is the conversion factor between Rhino units and dimension units.
Rhino.DimStyleLengthFactor (strDimStyle [, dblFactor])
strDimStyle |
Required. String. The name of an existing dimension style. |
dblFactor |
Optional. Number. The new length factor. If omitted, the current length factor is returned. |
Number |
If dblFactor is not specified, the current length factor if successful. |
Number |
If dblFactor is specified, the previous length factor if successful. |
Null |
If not successful, or on error. |
Dim strDimStyle, dblSize
strDimStyle = Rhino.CurrentDimStyle
dblFactor = Rhino.DimStyleLengthFactor(strDimStyle)
If dblFactor > 1.0 Then
Rhino.DimStyleLengthFactor strDimStyle, 1.0
End If