engineering-drawing
What it does
This skill creates a dimensioned PDF drawing sheet of a part, with views and notes. It is for engineers and makers who need shop or manufacturing drawings.
When to use it
- ✓When you ask for a dimensioned drawing or print of a part.
- ✓When a shop needs a PDF with views, dimensions, and a title block.
- ✓When you want 2D views of a 3D model with hidden lines and hole callouts.
Skill link
https://github.com/earthtojake/text-to-cad/blob/main/skills/engineering-drawing/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you make a PDF engineering drawing of this part with dimensions and a title block?”
5 new skills a week. 1 minute to read.
How it works
The AI writes a script that projects views from the part's geometry and places dimensions on it. When the model changes, rerunning the script updates the drawing.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Engineering drawing
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.
Setup
Run the cad command (~/.local/bin/cad where ~/.local/bin is not on your PATH, or where a
project's environment puts its own cad first; cad.cmd on Windows). If cad is not found and
the CAD app was only just added, its server may still be starting: wait five seconds and run the
command again, for up to a minute, before anything else. Otherwise 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. Any other failure
says what to do, and cad doctor explains the installation.
Workflow
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.shapeis the part. For a part with no model, read its file:read_stepfor a STEP,read_xbffor an xbf, anchored onPath(__file__).parent. Any build123d shape works. The drawing documents geometry, it does not build it.Write
<name>_drawing.pybeside the model, from the 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.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. Usesheet.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.Dimension what a maker needs, in MODEL coordinates: overall size per view (
view.overall()), feature positions and sizes (view.dim, withtol=orfit=where the design requires one), holes as callouts (view.hole: thru, depth, counterbore, countersink, thread), and notes with leaders (view.note). Leavetextunset so the dimension is measured; give a value only where the model does not define it. Leaveoffsetunset 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, andnotes=takes a LIST (notes="BREAK EDGES"is a sequence of eleven characters, so it is refused too).Run
cad run <name>_drawing.py. It prints the PDF it wrote, and anything it noticed while drawing — read those first:- "measures blank paper": the dimension's model points do not land on the 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.
- "annotation overlaps": two callouts print on top of each other, usually
one view's outermost dimension against the label of the view above it.
Pass a bigger
three_views(gap=...)or place one withoffset=. 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
MPLCONFIGDIRto a writable directory so matplotlib's font cache does not warn.Read the PDF and fix what collides. Check that no dimension text sits on a view, that hidden
FAQ
Does it make a DXF file?
No. The output is a single PDF drawing sheet.
Are the dimensions taken from the model?
Yes. The views and measured values come from the part geometry, not from typed numbers.
Can I use it for laser cutting?
No. Cut layouts are a different job, so use the DXF skill for those.
Details
Original description by the author
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.
repo: earthtojake/text-to-cad
Popularity
- GitHub stars
- 25k
- Ranking position
- #10071
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
bambu-labs
25kHelps your agent send a sliced or unsliced 3D model to a Bambu Lab printer through Bambu Connect or Bambu Studio.
cad
25kHelps your agent design 3D parts and assemblies as Python build123d scripts, export them as STEP or STL files, and check their measurements.
dfam-check
25kHelps your agent check whether a 3D mesh file can be printed well, reporting overhangs, wall thickness, and support needs.
dfm
25kHelps your agent review a part for sheet metal, CNC machining, or injection molding, to check if it can be made and what to change.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.