Catalogue / earthtojake/text-to-cad
Turn a CAD model written in Python into a 3D-printable STL
With earthtojake/text-to-cad, MIT. It runs once on your files and hands you the result.
Open in UGTUGT opens on your computer and shows what it will do. Nothing runs until you press Run.
- It takes
- 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
inputs/model.py
- 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
- It gives you
- one STL per exported part, named by the script
outputs/phone_stand.stl
- one STL per exported part, named by the script
- It can reach
- Only the files you give it, with no network.
- Tested
- On clean amd64 and arm64 machines, 2026-10-31, its check passing on its sample and failing on broken results.
- Its files
- 6 files in UGT's catalogue ↗, revision
f6b67ec4a0eb, from55d7f7cfc597
No UGT yet?
Set it up once. On a Mac or Linux, in Terminal:
curl -fsSL https://usegithubthing.com/install | shOn Windows, in PowerShell:
irm https://usegithubthing.com/install.ps1 | iex