I work with other people who design using CAD program, i convert them using freecad. I import those drawings as DAE files (sometimes as obj or STL, dae works best). I do not know the cause of it, but in general their drawings contain a lot of identical objects in identical locations. So a single screw for example is repeated 4 times at exact same location (however the whole dae import uses 1 shared origin by all objects).
I would like to remove all the duplicates perhaps by a script (set origin to selected object volume) then do a vertex count, and check if a similair object exists at the same location with same vertex count (screq and bolt may contain similair location but have different vertex count) so that would retain both.
Any idea on how to script it ?