DimStyleLinearPrecision

Returns or changes the linear display precision of a dimension style.

Syntax

rhinoscriptsyntax.DimStyleLinearPrecision (dimstyle, precision=None)

rhinoscript.dimension.DimStyleLinearPrecision (dimstyle, precision=None)

Parameters

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.

Returns

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.

Example

import rhinoscriptsyntax as rs

dimstyle = rs.CurrentDimStyle()

precision = rs.DimStyleLinearPrecision(dimstyle)

if precision>2: rs.DimStyleLinearPrecision( dimstyle, 2 )

Also See

DimStyleAnglePrecision

DimStyleArrowSize

DimStyleExtension

DimStyleFont

DimStyleNumberFormat

DimStyleOffset

DimStyleTextAlignment

DimStyleTextHeight