Returns or changes the linear display precision of a dimension style.
rhinoscriptsyntax.DimStyleLinearPrecision (dimstyle, precision=None)
rhinoscript.dimension.DimStyleLinearPrecision (dimstyle, precision=None)
dimstyle |
Required. String. The name of an existing dimension style. |
precision |
Optional. Number. The new linear precision value. If omitted, the current linear precision is returned. |
Number |
If precision is not specified, the current linear precision if successful. |
Number |
If precision is specified, the previous linear precision if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
dimstyle = rs.CurrentDimStyle()
precision = rs.DimStyleLinearPrecision(dimstyle)
if precision>2: rs.DimStyleLinearPrecision( dimstyle, 2 )