Replacing multiple objects with a different object

I’m wondering if there is a way to replace multiple instances of an object, let say a square, with another object, say a circle, such that the center of the circle would be located where the center of the square was, or at least put the new object superimposed on the old object, but on another layer.

I was handed a drawing where several hundred identical objects all need to be changed to a circle with the center corresponding to the center of the original objects. This will take me days to do manually and in all probibility I’ll miss one or more, as there’s lots of other stuff going on in said drawing.

Any ideas? Thanks!

If the objects to be replaced are as simple and clearly defined as a ‘square’, than a relatively simple script could be made to replace all of those found that fit the criteria with some other object. The script would probably need to be different/customized for each type of object you want to replace. The more complex the object, the harder it will be to find the exact matching coipes int the file.

If you have control over the file creation, this is easily handled using blocks, but I assume this is imported geometry from somewhere else and you don’t have this possibility.

Seeing the file would help, feel free to send me the file or a download link and I’ll have a look.