bambu-labs
Send prints to Bambu Lab printers through Bambu Connect, Bambu Lab's official app for printing from other software, or Bambu…
Make an engineering drawing of a part as a PDF - orthographic views with hidden lines and centre marks, real dimensions, hole callouts, notes and a title block on ISO sheets, all projected from the part's geometry so the drawing follows the model. Use when the user asks for a
Claude Code
$ npx -y skills add earthtojake/text-to-cad --skill engineering-drawing --agent claude-code
Codex
$ npx skills add earthtojake/text-to-cad --skill engineering-drawing -a codex -y
Cursor
$ npx skills add earthtojake/text-to-cad --skill engineering-drawing -a cursor -y
Gemini CLI
$ npx skills add earthtojake/text-to-cad --skill engineering-drawing -a gemini-cli -y
GitHub Copilot
$ npx skills add earthtojake/text-to-cad --skill engineering-drawing -a github-copilot -y
OpenCode
$ npx skills add earthtojake/text-to-cad --skill engineering-drawing -a opencode -y
Windsurf
$ npx skills add earthtojake/text-to-cad --skill engineering-drawing -a windsurf -y
name: engineering-drawing description: Make an engineering drawing of a part as a PDF - orthographic views with hidden lines and centre marks, real dimensions, hole callouts, notes and a title block on ISO sheets, all projected from the part's geometry so the drawing follows the model. Use when the user asks for a drawing, a dimensioned sheet, shop or manufacturing drawings, a print, or "2D views of this part". Not for DXF cut layouts or flat patterns. license: MIT metadata: repository: earthtojake/text-to-cad
An engineering drawing is a DOCUMENT derived from a part. `cad.eng_drawing` projects views from the part's geometry, places dimensions between points ON that geometry, finds centre marks on it, and lays the result out on an ISO sheet with a frame and a title block. Change the model, rerun the drawing script, and the views, hidden lines and measured values move with it. Nothing on the sheet is drawn by hand, and nothing on it is a number you typed unless you chose to override a value.
**The output is one PDF.** That is what a shop receives and what every operating system opens. No DXF is written, nothing is paired or linked, and there is no CLI: the script is the interface. Cut layouts and flat patterns are toolpaths, not documents, and a different job.
Run the `cad` command (`~/.local/bin/cad` where it is not on your PATH; `cad.exe` on Windows). If it is missing, install text-to-cad, outside a sandbox or with its permission:
curl -fsSL https://texttocad.dev/install.sh | sh
On Windows, in PowerShell: `irm https://www.texttocad.dev/install.ps1 | iex`. If the CAD app was only just added, its server may still be starting: try again for up to a minute first. `cad doctor --check` explains any other failure, changing nothing; `cad doctor` repairs what it reports. Tell the person any next step `cad setup` prints.
1. Get the part. Call the model: `enclosure()`, imported from the model's script, is built by text-to-cad's server (a replay when the server already holds it), and its `.shape` is the part. For a part with no model, read its file: `step.read` for a STEP, `xbf.read` for an xbf, anchored on `Path(__file__).parent`. Any build123d shape works. The drawing documents geometry, it does not build it. 2. Write `<name>_drawing.py` beside the model, from [the template](references/sheet-api.md#template). Import the model facts the dimensions reference (hole pitch, overall size, wall) from the model module rather than retyping them, so moving a feature moves its dimension. 3. Place views with `sheet.three_views(part, iso=True)`, which returns FOUR views: top, front and right in third angle with room for two rows of dimensions, plus an isometric in the free corner. `sheet.three_views(part)` returns three. Use `sheet.view(part, name, at=(x, y))` (sheet millimetres from the bottom-left corner; A3 is 420 × 297, A4 is 297 × 210) only for a custom layout. 4. Dimension what a maker needs, in MODEL coordinates: overall size per view (`view.overall()`), feature positions and sizes (`view.dim`, with `tol=` or `fit=` where the design requires one), holes as callouts (`view.hole`: thru, depth, counterbore, countersink, thread), and notes with leaders (`view.note`). Leave `text` unset so the dimension is measured; give a value only where the model does not define it. Leave `offset` unset too and the dimension takes the next free row outside the view; pass one only to place a dimension deliberately, and remember it is measured from the dimension's own points, not the view's edge. Keep notes few and short; one wider than the sheet's note column is refused, and `notes=` takes a LIST (`notes="BREAK EDGES"` is a sequence of eleven characters, so it is refused too). 5. Run `cad run <name>_drawing.py`. It prints the PDF it wrote, and **anything it noticed while drawing** — read those first:
view's geometry. Almost always the part was built from a corner and the script assumed it was centred. Check the part's bounding box.
one view's outermost dimension against the label of the view above it. Pass a bigger `three_views(gap=...)` or place one with `offset=`. The text is measured as the renderer draws it, glyph by glyph, so this fires on ink and not on markup: a chain of toleranced dimensions is silent when the values clear each other.
Steps 3 and 5 stand on their own: a sheet of views with no dimensions on it yet is a drawing, and writes its PDF.
When running unattended, set `MPLCONFIGDIR` to a writable directory so matplotlib's font cache does not warn. 6. **Read the PDF** and fix what collides. Check that no dimension text sits on a view, that hidden lines appear where features are behind faces, that every hole has a centre mark, and that no leader crosses the part. Very small dimensions (a few mm) put their value on their own extension line; dimension the larger feature instead. Move `at=` or `offset=` and rerun.
(centre marks), `DIM`, `NOTES`, `TITLE`, `SHEET` (frame), each printed at its own weight — 0.5 mm down to 0.18 mm, so thick reads against thin on paper. An edge is drawn once: a silhouette that the kernel returns as both visible and hidden stays on `VISIBLE`. Hidden TANGENT transitions are not drawn at all — a fillet running into a face, or the seam where a cylinder closes on itself, marks nothing a shop can see, and drawn dashed it reads as a hidden edge that is not there (on a bore, as a line down the hole's own axis).
lines, and true-size values a
The text-to-cad plugin gives your agent local workflows for generating 3D models as STEP, GLB, STL or 3MF files.
Send prints to Bambu Lab printers through Bambu Connect, Bambu Lab's official app for printing from other software, or Bambu…
Creates and edits parametric CAD parts and assemblies as Python build123d models that cadgen's engine builds and the CAD Viewer…
Measure mesh files against Design for Additive Manufacturing (DfAM) rules and report printability findings per process (FDM, SLS,…
Design-for-manufacturing review of a part for sheet metal, CNC machining, or injection molding - bends, reliefs and flat…
Generates, regenerates and validates 2D DXF drawings from Python build123d models, exported by cadgen. Use for DXF files, `.py`…
Slice 3D models into printer-ready G-code with OrcaSlicer, the open-source slicer with built-in profiles for most FDM printers…
Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with optional…
Use to design, redesign, critique, audit, polish or animate a frontend: websites, landing pages, dashboards, app UI, components,…
Hyperframes-based video template for retro pixel deck motion design. Use when users want a high-fidelity, multi-scene…
Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline,…