I am porting our BrickDesign-plugin. The plugin works well in rhino5 and rhino6 now.
But when I am opening a Rhino5 file in Rhino6 it does not work.
I have now a file which is created by our plugin.
The problem is the following.
Given code like this:
e=Rhino.DocObjects.ObjectEnumeratorSettings()
objects = []
e.ObjectTypeFilter = Rhino.DocObjects.ObjectType.Annotation
objects.extend(scriptcontext.doc.Objects.GetObjectList(e))
for obj in objects:
geom=obj.Geometry
print(geom.UserStringCount)
The Code prints out some 5’s when openend with Rhino5
and when openend with Rhino6 everything I get is some zeros’s.
Or more literally, The same file seems to not provide all the information when openend in Rhino6.
By the way when I recreate something in Rhino6 save it and reopen it I get the 5’ers again.