ObjRef not working after being read from UserData


I have an object with read and write functions on, which I attach to objects as userdata.
It contains some ObjRef and ObjRef array which seems to be written/saved just fine, but when reloading/opening the project in rhino, the references no longer seem to work.

I cant use .Object() or .Brep() as they are null. I’ve tried to make new references from the Object it was attached to, but they do the same.

Am I missing something obvious here? It seems one should be able to do this, as the ArchivableDictionary takes these datatypes no questions asked.


Hi @heine.kristensen,

Don’t try to archive ObjRef, as the class is designed to turn runtime picking information returned by some Get class or function. Better to just archive geometry.

– Dale