Returns or changes the length factor of a dimension style. Length factor is the conversion factor between Rhino units and dimension units.
rhinoscriptsyntax.DimStyleLengthFactor (dimstyle, factor=None)
rhinoscript.dimension.DimStyleLengthFactor (dimstyle, factor=None)
dimstyle |
Required. String. The name of an existing dimension style. |
factor |
Optional. Number. The new length factor. If omitted, the current length factor is returned. |
Number |
If factor is not specified, the current length factor if successful. |
Number |
If factor is specified, the previous length factor if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
dimstyle = rs.CurrentDimStyle()
factor = rs.DimStyleLengthFactor(dimstyle)
if factor>1.0: rs.DimStyleLengthFactor( dimstyle, 1.0 )