DimStyleTextGap

Returns or changes the text gap used by a dimension style.

Syntax

rhinoscriptsyntax.DimStyleTextGap (dimstyle, gap=None)

rhinoscript.dimension.DimStyleTextGap (dimstyle, gap=None)

Parameters

dimstyle

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

gap

Optional.  Number.  The new text gap.  If omitted, the current text gap is returned.

Returns

Number

If a gap is not specified, the current text gap if successful.

Number

If a gap is specified, the previous text gap if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

dimstyle = rs.CurrentDimStyle()

gap = rs.DimStyleTextGap(dimstyle)

if gap>0.25: rs.DimStyleTextGap( dimstyle, 0.25 )

Also See

DimStyleAnglePrecision

DimStyleArrowSize

DimStyleExtension

DimStyleFont

DimStyleLinearPrecision

DimStyleNumberFormat

DimStyleOffset

DimStyleTextAlignment

DimStyleTextHeight