Returns or modifies the scale of a dimension style.
Rhino.DimStyleScale (strDimStyle [, dblScale])
strDimStyle |
Required. String. The name of an existing dimension style. |
dblScale |
Optional. Number. The new scale value. If omitted, the scale is returned. |
Number |
If a scale is not specified, the current scale if successful. |
Number |
If a scale is specified, the previous scale if successful. |
Null |
If not successful, or on error. |
Dim strDimStyle, dblScale
strDimStyle = Rhino.CurrentDimStyle
dblScale = Rhino.DimStyleScale(strDimStyle)
If dblScale > 1 Then
Rhino.DimStyleScale strDimStyle, 1
End If