Block Instance Problem

Hello All,

I have a simple query. I know that if we create a box and made a block instance out of it and copy paste say 100 times in some random position, and if we change one the box rest will change.

But is it possible if 100 boxes are already created and we can somehow make block instance and connect everything and do the above steps the same?

It’s possible to write a script to check geometries equality and then create a block instance and replace all equal geometry with that block. It would be easy for Boxes but not as simple for other geometries.

Hello - see the attached script - if the geometry is truly copies of an original, it ought to work. (2.7 KB)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"


1 Like

sorry for the late reply,

I got this message when I used your script


step 1: I have many boxes, so I chose one box and made it as block and edited that block

step 2: I ran the script and I chose the block and I chose target object and the above message pops up in my window

kindly help on how to resolve this

Hello - this is a very stupid script, I made it for someone’s very specific case - if the objects are not actually copies of an original, it is unlikely to work, and it does not work on extrusions - only breps and meshes. The error you see looks like you have selected an extrusion - I can filter for that and probably even make it work but right now it does not.

If that does not explain things, please send me an example file.


1 Like