dxf
dxf lets you build 2D CAD drawings and cutting patterns directly through Python scripts. Generate DXF files with full control over geometry, then preview your designs instantly before export. Perfect for automating design workflows and batch-producing technical drawings.
dxf lets you build 2D CAD drawings directly through Python scripts with full control over geometry. Write code to define shapes, lines, circles, and polygons, then export them as DXF files ready for laser cutters, plasma tables, or CNC routers. The MIT-licensed library automates design workflows and batch-produces technical drawings without manual CAD work.
AI-generated summary based on this skill's SKILL.md
Install
earthtojake/text-to-cad/dxf · repository language: JavaScript
git clone https://github.com/earthtojake/text-to-cad
cp -r text-to-cad/skills/dxf ~/.claude/skills/dxfFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I generate DXF from Python?
dxf lets you build 2D CAD drawings directly through Python scripts with full control over geometry. Write code to define shapes, lines, circles, and polygons, then export them as DXF files ready for laser cutters, plasma tables, or CNC routers. The MIT-licensed library automates design workflows and batch-produces technical drawings without manual CAD work.
Can dxf create 2D DXF laser cut layouts?
Yes. dxf generates cutting files optimized for laser, plasma, and waterjet machines. Define your part geometry in Python, and dxf outputs DXF profiles that cutting equipment can read directly. Automate layout generation for gaskets, panels, templates, and contours—perfect for batch production and design iteration.
Does dxf project and unfold 3D CAD geometry into 2D DXF profiles?
dxf specializes in converting 3D CAD geometry into flat 2D DXF patterns. Unfold complex shapes into cutting-ready profiles, then export as DXF for fabrication. This workflow is ideal for sheet metal work, gasket manufacturing, and any process requiring flat patterns derived from 3D models.
What validation does dxf perform on DXF outputs?
dxf validates DXF outputs through entity checks and dimensional verification to catch errors before export. Confirm that your geometry is correct, layers are properly assigned, and dimensions meet specifications. This validation step prevents costly mistakes in cutting files and ensures quality across batch operations.
Can dxf generate flat patterns, gaskets, and panel templates?
dxf excels at generating flat patterns, gaskets, panels, and templates as production-ready DXF files. Automate template creation for repetitive parts, then export directly to your cutting equipment. Batch-produce technical drawings with consistent quality and zero manual CAD overhead.
SKILL.md
rendered from the published skill — quoted content, verbatim
DXF generation and validation
Provenance: maintained in earthtojake/text-to-cad. Use the installed local skill files as the runtime source of truth; the repository link is only for provenance and release review.
Purpose
Create or modify 2D DXF drawings from natural-language requirements or from CAD geometry, generate validated .dxf artifacts, and return checked outputs. DXF sources are Python files defining gen_dxf() returning an ezdxf document; the CLI owns output paths.
Two source shapes are supported:
- Standalone drafting: a Python source defining only
gen_dxf(). Use for pure 2D outputs — gaskets, panels, templates, cut layouts — with no 3D model behind them. - CAD projection: a
gen_dxf()added to a CAD generator source that also definesgen_step(). Use when the DXF is a drawing or profile of a 3D part; create and
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 15 files
skills/dxf/LICENSE
skills/dxf/SKILL.md
skills/dxf/agents/openai.yaml
skills/dxf/requirements.txt
skills/dxf/scripts/dxf/__init__.py
skills/dxf/scripts/dxf/__main__.py
skills/dxf/scripts/dxf/cli.py
skills/dxf/scripts/dxf/render_payload.py
skills/dxf/scripts/packages/cadpy/pyproject.toml
skills/dxf/scripts/packages/cadpy/src/cadpy/__init__.py
skills/dxf/scripts/packages/cadpy/src/cadpy/analysis.py
skills/dxf/scripts/packages/cadpy/src/cadpy/api.py
skills/dxf/scripts/packages/cadpy/src/cadpy/assembly.py
skills/dxf/scripts/packages/cadpy/src/cadpy/assembly_composition.py
skills/dxf/scripts/packages/cadpy/src/cadpy/assembly_export.py