Returns or changes the text alignment mode of a dimension style.
rhinoscriptsyntax.DimStyleTextAlignment (dimstyle, alignment=None)
rhinoscript.dimension.DimStyleTextAlignment (dimstyle, alignment=None)
dimstyle |
Required. String. The name of an existing dimension style. |
||||||||||
alignment |
Optional. Number. The new text alignment. If omitted, the current text alignment is returned. The text alignment values are as follows:
|
Number |
If alignment is not specified, the current text alignment mode if successful. |
Number |
If alignment is specified, the previous text alignment mode if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
dimstyle = rs.CurrentDimStyle()
alignment = rs.DimStyleTextAlignment(dimstyle)
if alignment!=2: rs.DimStyleTextAlignment( dimstyle, 2 )