Read Blocks from Rhino

Hi all, I am trying to write a GhPython script that can read blocks from Rhino. But instead to return some format that grasshopper can read, it returns “Rhino.Geometry.InstanceReferenceGeometry”, I wonder how to turn it to a block format that grasshopper can use?


Read Blocks from Rhino.gh (9.6 KB)
Many thanks,

If you updated to Rhino 8, you could use native components and wouldn’t need to script your own …

I haven’t migrate to Rhino 8 yet… so I still want to know how can I access blocks in Rhino 7. I remember the early version of Elefront has a block primitive button allows you to manually pick blocks but I cannot find it in the latest version…

Have you looked in the package manager?