engineering-drawing
Was er macht
Dieser Skill erstellt ein bemaßtes PDF-Zeichenblatt eines Teils mit Ansichten und Notizen. Er ist für Ingenieure und Bastler gedacht, die Werkstatt- oder Fertigungszeichnungen brauchen.
Wann du ihn nutzt
- ✓Wenn du eine bemaßte Zeichnung oder einen Druck eines Teils willst.
- ✓Wenn eine Werkstatt ein PDF mit Ansichten, Bemaßung und Schriftfeld braucht.
- ✓Wenn du 2D-Ansichten eines 3D-Modells mit verdeckten Kanten und Lochbeschriftungen willst.
Link zum Skill
https://github.com/earthtojake/text-to-cad/blob/main/skills/engineering-drawing/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du eine PDF-Konstruktionszeichnung dieses Teils mit Bemaßung und Schriftfeld erstellen?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI schreibt ein Skript, das Ansichten aus der Geometrie des Teils projiziert und Bemaßungen einträgt. Wenn sich das Modell ändert, aktualisiert ein erneuter Lauf des Skripts die Zeichnung.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Erstellt er eine DXF-Datei?
Nein. Die Ausgabe ist ein einziges PDF-Zeichenblatt.
Stammen die Bemaßungen aus dem Modell?
Ja. Die Ansichten und gemessenen Werte stammen aus der Geometrie des Teils und nicht aus eingetippten Zahlen.
Kann ich es für Laserschneiden nutzen?
Nein. Schnittlayouts sind eine andere Aufgabe, nutze dafür den DXF-Skill.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 25k
- Platz im Ranking
- #10071
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
bambu-labs
25kHilft deinem Agenten, ein geschnittenes oder ungeschnittenes 3D-Modell über Bambu Connect oder Bambu Studio an einen Bambu-Lab-Drucker zu senden.
cad
25kHilft deinem Agenten, 3D-Teile und Baugruppen als Python-build123d-Skripte zu entwerfen, als STEP- oder STL-Dateien zu exportieren und ihre Maße zu prüfen.
dfam-check
25kHilft deinem Agenten zu prüfen, ob eine 3D-Mesh-Datei gut druckbar ist, und meldet Überhänge, Wandstärken und Stützbedarf.
dfm
25kHilft deinem Agenten, ein Teil für Blechbiegen, CNC-Bearbeitung oder Spritzguss zu prüfen, um festzustellen, ob es hergestellt werden kann und was zu ändern ist.
Ähnliche Skills
feishu-doc
394kHilft deinem Agenten, Feishu-Cloud-Dokumente zu lesen, zu erstellen und zu bearbeiten, einschließlich Text, Bildern und Tabellen, über das Dokument-Werkzeug.
feishu-drive
394kLässt deinen Agenten Dateien in einem Feishu-Cloud-Ordner durchsehen, ordnen und kommentieren, der mit dem Bot geteilt wurde.
feishu-perm
394kHilft deinem Agenten zu prüfen und zu ändern, wer auf eine Feishu-Datei zugreifen darf, und wählt dabei die kleinste Berechtigung, die deine Anfrage erfüllt.