engineering-drawing
Ce qu’il fait
Cette compétence crée une feuille de plan PDF cotée d'une pièce, avec des vues et des notes. Elle s'adresse aux ingénieurs et aux makers qui ont besoin de plans d'atelier ou de fabrication.
Quand l’utiliser
- ✓Quand vous demandez un plan coté ou une impression d'une pièce.
- ✓Quand un atelier a besoin d'un PDF avec des vues, des cotes et un cartouche.
- ✓Quand vous voulez des vues 2D d'un modèle 3D avec les lignes cachées et les repères de perçage.
Lien du skill
https://github.com/earthtojake/text-to-cad/blob/main/skills/engineering-drawing/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Pouvez-vous réaliser un plan d'ingénierie en PDF de cette pièce avec des cotes et un cartouche ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'IA écrit un script qui projette les vues à partir de la géométrie de la pièce et place les cotes. Lorsque le modèle change, relancer le script met le plan à jour.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Crée-t-elle un fichier DXF ?
Non. Le résultat est une seule feuille de plan au format PDF.
Les cotes sont-elles tirées du modèle ?
Oui. Les vues et les valeurs mesurées proviennent de la géométrie de la pièce, et non de chiffres saisis à la main.
Puis-je l'utiliser pour la découpe laser ?
Non. Les plans de découpe relèvent d'une autre tâche ; utilisez la compétence DXF pour cela.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 25k
- Position au classement
- #10071
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
bambu-labs
25kAide votre agent à envoyer un modèle 3D tranché ou non tranché vers une imprimante Bambu Lab, via Bambu Connect ou Bambu Studio.
cad
25kAide votre agent à concevoir des pièces et assemblages 3D sous forme de scripts Python build123d, à les exporter en fichiers STEP ou STL, et à vérifier leurs mesures.
dfam-check
25kAide votre agent à vérifier si un fichier de maillage 3D peut être bien imprimé, en signalant les surplombs, l'épaisseur des parois et les besoins en supports.
dfm
25kAide votre agent à relire une pièce pour la tôlerie, l'usinage CNC ou le moulage par injection, afin de vérifier si elle peut être fabriquée et ce qu'il faut modifier.
Skills similaires
feishu-doc
394kAide votre agent à lire, créer et modifier des documents cloud Feishu, y compris du texte, des images et des tableaux, grâce à l'outil de document.
feishu-drive
394kPermet à votre agent de parcourir, organiser et commenter des fichiers d'un dossier cloud Feishu partagé avec le bot.
feishu-perm
394kAide votre agent à vérifier et modifier qui peut accéder à un fichier Feishu, en choisissant la plus petite autorisation qui répond à votre demande.