UnitAbsoluteTolerance

Returns or sets the document's absolute tolerance parameter.  Absolute tolerance is measured in drawing units. See Rhino's DocumentProperties command (Units and Page Units windows) for details.

Syntax

rhinoscriptsyntax.UnitAbsoluteTolerance (tolerance=None, in_model_units=True)

rhinoscript.document.UnitAbsoluteTolerance (tolerance=None, in_model_units=True)

Parameters

tolerance

Optional.  Number.  The absolute tolerance in drawing units.

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.

Returns

Number

If tolerance is not specified, the current absolute tolerance if successful.

Number

If tolerance is specified, the previous absolute tolerance if successful.

Example

import rhinoscriptsyntax as rs

tol = rs.UnitAbsoluteTolerance()

if tol<0.01:

    rs.UnitAbsoluteTolerance( 0.01 )

Also See

UnitAngleTolerance

UnitCustomUnitSystem

UnitDistanceDisplayMode

UnitDistanceDisplayPrecision

UnitRelativeTolerance

UnitSystem