Returns or changes the font used by a dimension style.
rhinoscriptsyntax.DimStyleFont (dimstyle, font=None)
rhinoscript.dimension.DimStyleFont (dimstyle, font=None)
dimstyle |
Required. String. The name of an existing dimension style. |
font |
Optional. String. The new font face name. If omitted, the current font is returned. |
String |
If a font is not specified, the current font if successful. |
String |
If a font is specified, the previous font if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
dimstyle = rs.CurrentDimStyle()
font = rs.DimStyleFont(dimstyle)
if font!="Arial": rs.DimStyleFont( dimstyle, "Arial" )