Image to DXF Drawing Generator
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_02805512/dxf-engineering-skill.
About this skill
Engineering drawing to DXF
When an engineer only has a screenshot, photo, or hand-drawn part drawing, it often lacks clean layers, usable CAD geometry, and verifiable dimensions before import.
How it works
The skill follows the five-stage workflow in SKILL.md:
- Image analysis: recognizes rectangular plates, holed parts, flanges, and irregular parts, then extracts dimensions, positions, hole sizes, and angles into structured JSON.
- Preview confirmation: generates an annotated DXF and a PNG preview, and lists the recognized parameters for review.
- Parameter correction: adjusts sizes, holes, slots, angles, or mm/inch units.
- Final DXF: runs generate_dxf.py to create files with OUTLINE, INNER, and HOLE layers plus annotations.
- Clean DXF: runs clean_dxf.py to remove DIMENSION, CENTER, TEXT, and HIDDEN, keeping only contour geometry.
It supports rectangle, circle, polygon, slot, arc, and line geometry, as well as linear, diameter, and radius annotations. Output is AutoCAD R2010-compatible DXF in mm by default. It requires ezdxf; preview generation requires matplotlib. It is suitable for mechanical outlines, hole plates, and flange-style parts, but not for complex 3D solids, surface modeling, or manufacturing-grade exact dimensions.
Use Cases
- Turn a flange screenshot with holes into CAD-ready DXF after extracting hole positions and diameters.
- Convert a rectangular plate image into annotated DXF, then review hole positions, angles, and mm values.
- After generating formal DXF, remove dimensions, center lines, and text while keeping outline and hole layers.
- Convert a slot-part photo into slot and arc JSON parameters, then verify required fields before export.
Best For
- Drafting assistants who need to turn part screenshots into reviewable DXF outlines.
- Process engineers who need to extract hole sizes and positions from plate images.
- CAD operators who need to remove annotation layers and keep OUTLINE, INNER, and HOLE.
- Students who need to convert reference drawings into AutoCAD R2010-compatible DXF files.
Related Skills
Generate an interactive HTML product detail page from images and copy, with multi-product carousel, inline text editing, design controls, and PDF/JPG/PSD export support.
Enter a material name to get preview and download links for free, commercially usable video assets, with paid platform options, pricing, and search suggestions when results are limited.
A local CLI for Dreamina image and video generation, including credit checks, async submission, result queries, and task history review.
Generate and validate JianYing drafts from storyboard JSON with narrated commentary, original-sound preservation, timing checks, and draft inspection.