Engineering Drawing logo

Engineering Drawing

CommunityPopular
earthtojake
engineering-drawing

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".

Overview

Publisherearthtojake
Repositorytext-to-cad
Skill nameengineering-drawing
Stars
16.5K
Forks
1.7K
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by earthtojake on GitHub. Read the source before you install it.

Installation

Install the Engineering Drawing AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/earthtojake/text-to-cad/tree/main/skills/engineering-drawing
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/earthtojake/text-to-cad.git /tmp/text-to-cad
mkdir -p .claude/skills
cp -r /tmp/text-to-cad/skills/engineering-drawing .claude/skills/engineering-drawing
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Engineering Drawing in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Engineering Drawing on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Engineering Drawing is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Engineering drawing

Provenance: maintained in earthtojake/text-to-cad. Use the installed local skill files as the runtime source of truth.

An engineering drawing is a DOCUMENT derived from a part. cadgen.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. $dxf makes cut layouts and flat patterns, which are toolpaths, not documents; the two are different jobs.

Workflow

  1. Get the part. cadgen.read_step(Path(__file__).parent / "../STEP/part.step") reads the artifact a @step model wrote (run python <model>.py first); a live build123d shape works just as well. The drawing documents geometry, it does not build it.

  2. Write <name>_drawing.py beside 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.

  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 python <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 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.

What the sheet contains

  • Layers with meaning: VISIBLE (heavy outline), HIDDEN (dashed), CENTER (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).
  • Dimensions measured from the geometry, with filled arrowheads and witness lines, and true-size values at any drawing scale.
  • A title block with title, part number, material, author, scale, units, projection, revision, SHEET n OF m and the drawing function's name; numbered notes above it (the general tolerance, when given, is note 1); a revision table top-right when revisions= is given. Text longer than its cell is set smaller, and cut with an ellipsis rather than overrun.
  • PDF bytes that are a function of the content: no creation date is stamped, so an unchanged drawing rebuilds to an identical file.

What fails loudly

The script raises rather than writing a wrong or missing document:

  • Views that run off the frame, naming a scale that has been laid out and verified to fit, or saying that no standard scale does.
  • A part argument the vocabulary does not define: an unknown view name, sheet size or projection, orientation= other than "h"/"v", a negative or zero diameter, a counterbore that is not a (diameter, depth) pair, a tol that is not a number or a pair, a hole that is both thru and given a depth, notes= or revisions= given a bare string, a note wider than the sheet, angle() legs that are collinear or zero-length, a non-finite at= or offset=.
  • A missing renderer. The PDF is the drawing, so no matplotlib is a failure, not a skipped half. A failed render leaves no file behind.
  • out= missing or not naming a .pdf, at import time.

Limits to state in the handoff

  • Tolerances come only from tol=, fit= and general_tolerance= that you write; get the values from the design requirements or the user, never invented. A dimension without one is nominal.
  • Views are orthographic projections with hidden lines from the kernel; no sections, details, or auxiliary views yet. Say what a view does not show.
  • The sheet keeps callouts clear of the views it knows about, and reports annotation that still prints over other annotation, but it does not check annotation against line work. Read the PDF.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Engineering Drawing AI skill do?

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".

Why use Engineering Drawing on TypingMind?

Because you install it once and use it with any model. Engineering Drawing is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Engineering Drawing in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/earthtojake/text-to-cad/tree/main/skills/engineering-drawing. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Engineering Drawing?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Engineering Drawing?

As many as you like. As long as a model supports skills, you can use Engineering Drawing with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Engineering Drawing AI skill free?

Yes. It is published on GitHub by earthtojake under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇