Create unique GUIDs by exploding block instances

Hi all,

I currently have 3 block instances of the same block definition.
The block definition has 2 objects in it

What I want to do is to get a 6 unique GUIDs as there are 6 objects in the document for the user (2 objects times 3 block instances)

I am unsure how to approach this. The block instances themselves have a unique GUID but their objects inside have the same GUIDs which wont be useful. I have tried something ballsy by pushing and purging the individual objects which does give me unique IDs for each object. Will this method scale up well for 1000s of objects in the future? Then there is also the lunchbox create GUID component but I dont know how to attach them to the model objects I obtain by exploding the block.

In general if I want to create GUIDs for objects in grasshopper, what is the best way to do it?

blocks test.3dm (43.9 KB)
blocks test gh.gh (11.3 KB)

Couldn’t you just bake again?

thats what I did with the content cache component. I pushed it into the model to get the object with a GUID and then purged the content. I feel that this might not scale up well for a large number of objects though. Is it not possible to just attach a GUID to the exploded block in grasshopper itself?

I think it s not possible to have a guid twice in one doc.
At least this is what documentation claims.
Maybe set guid.empty to the attributes?
https://developer.rhino3d.com/api/rhinocommon/rhino.docobjects.objectattributes/objectid

If you find a way to have a guid twice in one doc - i would claim this would be a quite fundamental bug. Please document how this is done