Browse projects/3D printing/Make a 3D-printable model from code/text-to-cad
earthtojake/text-to-cad A tool that works on your files
Turn a CAD model written in Python into a 3D-printable STL
- Open source
- Runs on your own computer
- Windows, Mac or Linux
- Tested 31 Oct 2026
You bring
- a build123d model script: one or more @cadgen.model functions, and a __main__ block that calls cadgen.export(part, Path('/work/outputs/<name>.stl')) for each part
You get
- one STL per exported part, named by the script
What can it reach?
Only the files you give it, with no network.
How was it tested?
Run on clean Intel and AMD and Apple silicon and ARM machines on 31 Oct 2026. Its check passed on a known sample and rejected deliberately broken results.
This checks the job this page describes, not every feature of the original project.
Project, licence and recipe files
earthtojake/text-to-cad on GitHub
Licence. MIT
Recipe revision abe77d60d871, from 55d7f7cfc597.
