I’m revising all the R5 RhinoScripts to work in R6 just to save time, 'cause there’s actual work to do. I guess I’ll have to rewrite some scripts in python. I’m learning it as I go too.
Like at the moment I can’t make this work for some reason:
sc.doc.Objects.Find(dim).AnnotationGeometry.DimensionStyle.ClearAllFieldOverrides
dim.CommitChanges()
from Rhino import *
dims = list(RhinoDoc.ActiveDoc.Objects.FindByObjectType(DocObjects.ObjectType.Annotation))
for dim in dims:
dim.AnnotationGeometry.DimensionStyleId = dim.AnnotationGeometry.DimensionStyleId
dim.CommitChanges()
basically the dim.AnnotationGeometry.DimensionStyleId returns the id of the dimension parent definition. and assigning it to itself seems to reset it to the defaults…