I recently gave CadQuery (a Python wrapper around OpenCASCADE) and its Jupyter and VSCode integrations another try. Two years ago installation was a mess across conda, Docker, and pyenv, and the API itself felt like a dense, bespoke DSL you had to fight.
This time everything just installed, and Claude Code turned out to be pretty good. Designing with code is sometimes more work upfront, but iteration is so much better. You get proper abstractions: functions, encapsulation, loops. You can drop in a SAT solver to optimize part placement or grab data from an excel sheet. No more clicking through a GUI that crashes and loses your session. I've spent time with Fusion, SolidWorks, NX, OnShape, FreeCAD, and Rhino, and each has its merits, but none of them can benefit from the LLM revolution the way a code-first tool can.
I asked Claude Code to generate a set of Lego bricks in various sizes, apply a nice color palette, and pack them optimally into a grid. It needed some steering, but all in all I was impressed
I believe there's a cadquery workbench for freecad, I messed around with it about a year ago but ran into similar struggles as you describe. I'll have to give it another try.
There is actually, though I suspect it's a different one I found.
https://github.com/jopdorp/build123d-freecad (it also supports cadquery)
Set it up today and I am really liking build123d in general. I've always wanted something code-based for CAD and I can't believe I missed something this promising.
Frankly even the visualization tools that you can plugin like OCP Cad viewer mean that outside of complex assemblies you can do everything in your editor of choice.
I'm playing with this now too and it's really wonderful. I'm hoping that I can use build123d 100% for modelling individual parts and then FreeCAD for assemblies, simulations, etc.
not really. cadquery started as a freecad workbench, but moved out a long while ago. So current cadquery isn't usable inside freecad (which is a shame).
also worth a look: build123d
Yeah, I found it much more interesting when it was in FreeCAD --- wish there was some nice, graphical alternative (something like Grasshopper).
I just learned about build123d from another comment here, very excited to try it out!