Hi there,
I am trying to load the Text Height value from the rhino doc active Dimension Style into Grasshopper through the GH Python component.
I was thinking of running the following code which works in the rhino doc python editor but load a “None” value in Grasshopper :
import rhinoscriptsyntax as rs import scriptcontext as sc
sc.doc = rh.RhinoDoc.ActiveDoc
if start: dimStyle = rs.CurrentDimStyle() textHeigh = rs.DimStyleTextHeight(dimStyle)
# print textHeight --> "None" arrowSize = rs.DimStyleArrowSize(dimStyle)
`# print arrowSize --> “50”``
sc.doc = ghdoc
Does anybody have an explanation or an other way of doing this ?
Thanks for your help