Returns or changes the text gap used by a dimension style.
rhinoscriptsyntax.DimStyleTextGap (dimstyle, gap=None)
rhinoscript.dimension.DimStyleTextGap (dimstyle, gap=None)
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. |
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. |
import rhinoscriptsyntax as rs
dimstyle = rs.CurrentDimStyle()
gap = rs.DimStyleTextGap(dimstyle)
if gap>0.25: rs.DimStyleTextGap( dimstyle, 0.25 )