engineering-drawing
Fungsinya
Skill ini membuat lembar gambar PDF berdimensi dari sebuah bagian, dengan tampilan dan catatan. Cocok untuk insinyur dan pembuat yang memerlukan gambar bengkel atau manufaktur.
Kapan dipakai
- ✓Saat Anda meminta gambar berdimensi atau cetakan sebuah bagian.
- ✓Saat bengkel memerlukan PDF dengan tampilan, dimensi, dan blok judul.
- ✓Saat Anda menginginkan tampilan 2D dari model 3D dengan garis tersembunyi dan keterangan lubang.
Link skill
https://github.com/earthtojake/text-to-cad/blob/main/skills/engineering-drawing/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Bisakah Anda membuat gambar teknik PDF dari bagian ini dengan dimensi dan blok judul?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI menulis skrip yang memproyeksikan tampilan dari geometri bagian dan menempatkan dimensi padanya. Saat model berubah, menjalankan ulang skrip akan memperbarui gambar.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah skill ini membuat file DXF?
Tidak. Keluarannya adalah satu lembar gambar PDF.
Apakah dimensinya diambil dari model?
Ya. Tampilan dan nilai yang diukur berasal dari geometri bagian, bukan angka yang diketik manual.
Bisakah dipakai untuk pemotongan laser?
Tidak. Tata letak potongan adalah pekerjaan lain, jadi gunakan skill DXF untuk itu.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 25k
- Peringkat
- #10071
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
bambu-labs
25kMembantu agent Anda mengirim model 3D yang sudah diiris atau belum diiris ke printer Bambu Lab melalui Bambu Connect atau Bambu Studio.
cad
25kMembantu agent Anda merancang bagian dan rakitan 3D sebagai skrip Python build123d, mengekspornya sebagai file STEP atau STL, dan memeriksa ukurannya.
dfam-check
25kMembantu agent Anda memeriksa apakah file mesh 3D bisa dicetak dengan baik, dengan melaporkan overhang, ketebalan dinding, dan kebutuhan penyangga.
dfm
25kMembantu agent Anda meninjau bagian untuk lembaran logam, pemesinan CNC, atau cetak injeksi, guna memeriksa apakah bisa dibuat dan apa yang perlu diubah.
Skill serupa
feishu-doc
394kMembantu agent Anda membaca, membuat, dan mengedit dokumen cloud Feishu, termasuk teks, gambar, dan tabel, dengan memakai alat dokumen.
feishu-drive
394kMemungkinkan agent Anda menelusuri, mengatur, dan memberi komentar pada file di folder cloud Feishu yang sudah dibagikan kepada bot.
feishu-perm
394kMembantu agent Anda memeriksa dan mengubah siapa yang dapat mengakses file Feishu, dengan memilih izin terkecil yang memenuhi permintaan Anda.