Object attributes user dictionary keyval pair not saving in Rhino 6?



Hi all,

I have a user dictionary keyval pair attached to a doc object’s attributes. The keyval pair persists through a File->Save operation, and for as long as the Rhino doc is open, but is gone after re-opening the doc. This issue occurs in Rhino 6, but not 5. The doc object is an instance definition, in case that matters.

I can see that doc objects in Rhino 6 now have their own user dictionary (meaning one needn’t go through the attributes)… but I’d like to use the same code base if possible.

Lmk if anyone can reproduce this issue. Thanks!


(Steve Baer) #2

Can you share a 3dm with a single object in it that reproduces this?


Thanks, Steve. This Rhino-5 doc has an object with a keyval pair in its attributes:

On my end the attributes are lost when copy-pasting into a Rhino-6 doc:

I can assign the attributes in Rhino 6, but they don’t survive a save/re-open, so of course I can’t prove this with a file :slight_smile: