Returns or changes the prefix of a dimension style - the text to prefix to the dimension text.
rhinoscriptsyntax.DimStylePrefix (dimstyle, prefix=None)
rhinoscript.dimension.DimStylePrefix (dimstyle, prefix=None)
dimstyle |
Required. String. The name of an existing dimension style. |
prefix |
Optional. String. The new prefix. If omitted, the current prefix is returned. To remove the prefix, pass in an empty string, or "". |
String |
If prefix is not specified, the current prefix if successful. Note, if no current prefix exists, None is returned. |
String |
If prefix is specified, the previous prefix if successful. Note, if no previous prefix exists, None is returned. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
dimstyle = rs.CurrentDimStyle()
rs.DimStylePrefix( dimstyle, "[" )