Does code-based CAD hold up for real parts, or only for brackets and enclosures?
Agents are writing Verilog and routing PCBs now, but mechanical CAD still looks mostly manual. The usual answer is code-based CAD (CadQuery, build123d, OpenSCAD) since LLMs write Python well.
Has anyone shipped a real part that way, with fillets, draft, drawings, and a vendor handoff? Or is driving SolidWorks/Onshape through the API the better path?
One thoughtful comment that is not AI-assisted unlocks the ability to create threads.
10 comments
It's rapidly getting better! The newest frontier models (Astra, Fable) can go from basic requirements to a relatively detailed design in short timeframes. The biggest gap IMO is integration with existing CAD softwares; most of them try to drive with HTML and Python and struggle to make complex STEP geometry.
Existing geometries can easily be iterated on, though.
I like to play around so I tested this last night. Using Mythos. I had it design a flywheel energy-storage unit in build123d. 50 checks rerun at every change. Some stuff the checks caught; a stress hot spot at a fillet, 55% over the hand calc, bearing ring cutting into the shaft fillet, bolts holding about a 1/6 of the burst tourque to name a few. Where it broke; the drawings, every dim. placed by hand, no GD&T, a cylinder cut into a cone came back as and invalid sold and drawing labels got corrupted when grouped together. What I do want to build is a whole home generator running on nothing connected to the power grid. For some reason I am fascinated by this and cannot get over the fact that is NOT doable.. Screw that, it HAS to be.
FWIW I have sent simple production package (drawings, step files, tolerances) made almost entirely by Opus 5.5 (but driven very closely by me) to an actual manufacturer to test this out, and the only DFM feedback I got from them was my knurling was a little off compared to what they could do. Other than that, they were 100% ready to put it into production.
Not yet. Generating geometry differs from understanding why a particular tolerance matters, how material behaviour affects a design, or what makes an assembly reliably manufacturable. As more experienced designers and engineers adopt these tools and companies invest in bringing domain experts into the development process, models could gradually learn to account for these less glamorous but essential aspects of engineering.
I've been designing a custom DAP in my (little) free time. It's CNC machined aluminum with a few different parts including polycarb inserts, and a two piece alu casing that holds the display and the PCBs inside
I've been using Opus 5.5 for the assist and have gotten to the mfg/quoting stage a lot faster than I could without it! My main workflow is Python 2d/sketches -> CadQuery -> STEP -> SolidWorks -> edit -> loop