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
Decision gist · record as of 2026-07-11
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.
Use it when
- Yes.
- dxf specializes in converting 3D CAD geometry into flat 2D DXF patterns.
Verify before relying
Read SKILL.md below before installing (43 files). Open directory: indexed for reading, not audited.
Install
earthtojake/text-to-cad/dxf · repository language: JavaScript
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently 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)
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
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Generate 2D DXF drawings and cut layouts from Python code”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
Create and modify URDF (Unified Robot Description Format) files to define robot kinematics, joint structures, and link hierarchies. This skill helps roboticists and engineers build frame-correct kinematic models for simulation, visualization, and control system integration. Streamline your robot description workflow with intelligent URDF generation and editing capabilities.
Turn written specifications into working CAD models instantly. This skill converts natural language descriptions into parametric parts and assemblies, letting you design and iterate without touching traditional CAD interfaces. Perfect for rapid prototyping and design exploration.
sdf is a skill for creating and modifying SDFormat files through conversational commands. Whether you're designing robot models or building simulation environments, this tool translates your descriptions into valid .sdf geometry and configuration. Perfect for roboticists and simulation engineers who want faster CAD workflows.
srdf empowers you to build and refine Semantic Robot Description Format files that power MoveIt2 motion planning workflows. Whether you're defining robot kinematics, collision geometry, or planning groups, this skill streamlines SRDF authoring with text-driven CAD generation and real-time validation.
cad-viewer brings CAD geometry to life with an interactive 3D visualization environment. Load, inspect, and evaluate generated CAD files directly within your workflow, making design review and iteration seamless. Perfect for agents that need to validate or present CAD output in real time.
Transform 3D mesh geometry into production-ready G-code by leveraging local slicer engines. This skill bridges CAD design and machine execution, handling the critical conversion step that prepares models for CNC machining and additive manufacturing. Ideal for workflows requiring direct control over slicing parameters and output formats.
More skills step-parts (MIT) · use-openscad (MIT) · bambu-labs (MIT)