I found bug in dimension.py Pythonscript/Rhinoscript core source code.
Line 200:
rc = annotation_object.Geometry.Text
if usertext is not None:
annotation_object.Geometry.Text = usertext
annotation_object.CommitChanges()
scriptcontext.doc.Views.Redraw()
Please change as
rc = annotation_object.Geometry.Text
if usertext is not None:
annotation_object.Geometry.Text = usertext
annotation_object.CommitChanges()
scriptcontext.doc.Views.Redraw()
return rc
Could you fix this Next Rhino5 SR ?
and I’d like to know when will it be available.
Well, as we don’t know when and if the next SR will be, if you need to distribute your scripts now, what you can do is integrate the corrected method directly into your script as a separate function definition and call it from inside your script. That way it’s completely self-contained and doesn’t depend on when the rhinoscriptsyntax function will get fixed. Just a thought.