How can I select identical objects (like hundreds) and replace them by one block definition, keeping their orientation and position.
I tried few python scripts like here
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.