Replace identical objects with one block

You can do this in Grasshopper, the key being finding a common plane via the geometry.

I did a similar workflow with Revit geometry here. If you post your file and Rhino version (Rhino 8 would be better in this case, no plugin req’d to make a block) we can take a look.