Changing Dimension Style in Rhino 7

Please correct me if I’m wrong, but I think that In Rhinocommon for V5 I used to be able to change the current dimension style by simply:

doc.DimStyles.CurrentDimensionStyle.TextHeight = 0.5

How do I do the equivalent in Rhinocommon for Rhino 7?

Thanks,
Sam

import Rhino
import scriptcontext as sc

dimstyle =  Rhino.RhinoDoc.ActiveDoc.DimStyles.Current
dimstyle.TextHeight = 0.5
sc.doc.DimStyles.Modify(dimstyle, dimstyle.Id, False)
sc.doc.Views.Redraw()
1 Like

Thanks!