Returns or sets the document's relative tolerance parameter. Relative tolerance is measured in percent. See Rhino's DocumentProperties command (Units and Page Units windows) for details.
rhinoscriptsyntax.UnitRelativeTolerance (relative_tolerance=None, in_model_units=True)
rhinoscript.document.UnitRelativeTolerance (relative_tolerance=None, in_model_units=True)
relative_tolerance |
Optional. Number. The relative tolerance in percent. |
in_model_units |
Optional. Boolean. Return or modify the document's model units (True) or the document's page units (False). The default is True. |
Number |
If relative_tolerance is not specified, the current relative tolerance if successful. |
Number |
If relative_tolerance is specified, the previous relative tolerance if successful. |
import rhinoscriptsyntax as rs
tol = rs.UnitRelativeTolerance()
if tol<1.0:
rs.UnitRelativeTolerance(1.0)