OpenSCAD + Claude: CAD Without Drawing a Single Line
I have been using Claude for something a bit different from my usual coding: designing physical parts to 3D print. The trick that makes it work is OpenSCAD.
Why OpenSCAD fits an AI so well
OpenSCAD is CAD written as code. Instead of clicking and dragging, you describe a part as shapes that are added together and cut from each other, and every dimension is a named variable. To a language model that is just a text file, so it can read the whole design, reason about it and change it precisely.
My setup is simple: Claude Code runs in the terminal and edits the .scad file, while OpenSCAD has the same file open with automatic reload. Every time Claude saves, the 3D preview updates in front of me, so I watch the part take shape in real time.
How the conversation goes
- I give it measurements, photos and what the part has to do.
- Claude writes a parametric model with comments explaining each value.
- I look at the preview and say what is wrong in plain words: "the corners look easy to break", "top and bottom should not be round".
- Claude changes a parameter or rebuilds a shape, and I look again.
I never drew a line myself. I describe, measure, look and correct.
Things that surprised me
- It thinks about printing. It designs overhangs at 45 degrees so they need no supports, and it wrote a small Python script that reads the exported STL and lists any face that would need them. That turns "probably printable" into a check.
- It can review its own geometry. Running a code review agent over the .scad file found real bugs, like a mirror applied in the wrong order and a fillet cutting into a screw counterbore.
- It explains preview glitches. Flickering surfaces turned out to be cuts that only touched instead of overlapping, a classic OpenSCAD trap it knew how to fix.
- 2D output is free. For my closet project it also produced flat layouts with every hole and cut measurement marked.
Where you still need to pay attention
Claude is confident even when a number is wrong. One outline came out 140 mm wide instead of 157, and I only caught it because the screw spacing did not add up. It also cannot measure your real object, so the model is only as good as your calipers. Check the preview against reality every time.
What I built with it
So far: a raised base for my plunge router that fit perfectly on the first print, and a drill guide that clamps onto an 18 mm board so I can drill straight holes into its edge. Both are just parameters at the top of a file, so changing the board thickness or the plate height is a one-line edit.
If you have avoided CAD because the tools feel heavy, try OpenSCAD with an AI assistant. You bring the measurements and the judgement, and it writes the geometry.

Comments
Post a Comment