RhinoObject Id changes for reference objects

Is there a way to get the original guid of a RhinoObject that is loaded in the document via a Worksession?
I notice that Rhino does some under the hood mapping of guids when you attach a worksession model that contains objects that have the same guid as elements in the host model (for example: copies of those elements).

  • If I attach a model into an empty host, the guid of the RhinoObject matches that of the element in its host.
  • If I attach a model into a host that has elements that have guids found in the referenced model a new guid is assigned by Rhino.

I’d like to match the original guid in the referenced model to copy some data.

Hi @Iván_Pajares_Sánchez,

You’ll need to add the object’s id to some place you can query, perhaps as attribute user text.

– Dale

Thanks for your answer @dale I was hoping not to do that :sweat_smile: