Clean Up & Export Better: Flatten + Auto-Block Scripts for Rhino

As we all know, the CAD world is full of β€œ3D drawings of 2D plans.”
To make sense of the chaos, I created two practical Rhino Python scripts:


:red_triangle_pointed_down: Flattening Script

[flatten_geometry.py]
This script flattens all 3D geometry onto the XY plane β€” ideal for cleaning up misaligned or ghosted Z-values in imported CAD files. Perfect for standardizing data before documentation or export.

flatten geometry.py (9.4 KB)

:brick: Recursive Blockify for SketchUp Export

[recursive_blockify.py]
This script wraps each individual object into a block, making them SketchUp components on export.
:check_mark: Keeps geometry editable (better than mesh conversion)
:check_mark: Leaves existing blocks untouched
:check_mark: Works well with repetitive modular items (e.g., furniture, faΓ§ade panels)

Use this when you want 50–80% cleaner component-based SketchUp models without destroying editability.

recursive_blockify.py (2.8 KB)

( BEWARE - IT WILL ONLY CONVERT ITEMS TO BLOCKS , AND LEAVE EXISTING BLOCKS UNTOUCHED.)

python script export sketchup blocks flatten automation #cad-cleanup components productivity