Returns or modifies the dimension style of a dimension object.
rhinoscriptsyntax.DimensionStyle (object_id, dimstyle_name=None)
rhinoscript.dimension.DimensionStyle (object_id, dimstyle_name=None)
object_id |
Required. String or Guid. The object's identifier. |
dimstyle_name |
Optional. String. The name of an existing dimension style. |
String |
If dimstyle_name is not specified, then the object's current dimension style if successful. |
String |
If dimstyle_name is specified, then the object's previous dimension style if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a dimension")
if rs.IsDimension(obj): rs.DimensionStyle(obj, "Default")