AI & text-to-CAD

CadQuery

Definition

CadQuery is an open-source Python library for building parametric CAD models in code on top of the Open CASCADE kernel. It can export STEP as well as STL and 3MF, which makes it a common target when LLMs are asked to write CAD scripts.

Updated

Why it gets used with AI#

The CadQuery introduction lists STEP, AMF, and 3MF output alongside STL, and says the library is built on OCP, Python bindings for the Open CASCADE kernel. That combination means a generated script produces real B-Rep geometry that other CAD programs can edit.

build123d is a related Python CAD library on the same kernel with a different API style. Both are code-first, so they reward scripts written with clear variables and named features.

Sources

All glossary terms