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:
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)
Recursive Blockify for SketchUp Export
[recursive_blockify.py]
This script wraps each individual object into a block, making them SketchUp components on export.
Keeps geometry editable (better than mesh conversion)
Leaves existing blocks untouched
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