How to automatically position instances of the same mesh

I am importing a large model from sketchup, which consists of many repetitions of many meshes. When importing into unreal engine, I’ve tried both ticking and unticking ‘Transform Vertex to Absolute’, but each time it maintains the same absolute (0,0,0) for all the individual meshes so that they will all fall into the correct relative position. However when I try to optimize by replacing the same meshes with instances, I have to do this manually in the viewport for each one. Is there an automatic way of doing this? This is part of a very large model.

Thanks in advance.