DimStyleLengthFactor

Returns or changes the length factor of a dimension style. Length factor is the conversion factor between Rhino units and dimension units.

Syntax

rhinoscriptsyntax.DimStyleLengthFactor (dimstyle, factor=None)

rhinoscript.dimension.DimStyleLengthFactor (dimstyle, factor=None)

Parameters

dimstyle

Required.  String.  The name of an existing dimension style.

factor

Optional.  Number.  The new length factor.  If omitted, the current length factor is returned.

Returns

Number

If factor is not specified, the current length factor if successful.

Number

If factor is specified, the previous length factor if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

dimstyle = rs.CurrentDimStyle()

factor = rs.DimStyleLengthFactor(dimstyle)

if factor>1.0: rs.DimStyleLengthFactor( dimstyle, 1.0 )

Also See

DimStylePrefix

DimStyleSuffix