How to automatically map a block to hundreds of loose solids?

Hi everyone,

I have a large cabinet production model imported from Cabinet Vision into Rhino. I need to replace hundreds of low-quality hardware models with a clean manufacturing-grade 3D hinge block that I already have in the file.

The Cabinet Vision file imports the door machining tracks as open polysurfaces (the 16-sided 35mm cup cylinder and the two flanking 8mm screw dowel cylinders). Because they aren’t imported as actual unique block instances, I cannot use the standard ReplaceBlock command in bulk.

I’ve attached an image showing a single boring hole cluster next to my clean 3D hinge block.

The Setup & Goal:

  • I have hundreds of these boring clusters scattered across the model.
  • The doors are rotated and oriented in various 3D planes (left doors, right doors, upper/lower cabinets).
  • I want to align my clean 3D hinge block using the geometry of these cylinders as a 3D spatial map (snapping the center cup and aligning to the two screw pegs).
  • Doing this manually with Orient3Pt or OrientOnSrf will take days for a project of this scale.

What I need help with:
I do not know Grasshopper and dealing with raw coding scripts is a bit too overwhelming for my current workflow. I am looking for a simple tool, a script I can just paste once into the Macro Editor, or an automated command trick that will let me select all these boring cylinders in bulk and automatically snap copies of my clean block onto all of them simultaneously.

If anyone has a plug-and-play python script or command macro that handles this exact woodworking layout scenario, I would be incredibly grateful!

Thanks in advance.


Sending an example model might be helpful. WE can look closer how we might approach it.

By the way, using Claude AI to create scripts has been something people have been successful creating custom scripts too.