top | item 47085965

(no title)

tda | 11 days ago

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

discuss

order

jcgrillo|11 days ago

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.

upboundspiral|10 days ago

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.

yehoshuapw|11 days ago

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