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