dxf-civil

Inspect, render, validate, and modify civil-engineering DXF drawings using ezdxf.

Updated May 12, 2026
One-click install
npx skills add https://github.com/pedroschz/dxf-civil --skill dxf-civil
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dxf-civil
Source: https://github.com/pedroschz/dxf-civil/tree/main
Command: npx skills add https://github.com/pedroschz/dxf-civil --skill dxf-civil

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ezdxf, matplotlib, pyyaml, and includes scripts (resource) components.

What problem does it solve?

The DXF Civil Engineering skill enables safe, scalable inspection, rendering, validation, and modification of civil CAD drawings without dumping full content into chat, helping engineers work with large files efficiently.

Core Features & Use Cases

  • Inspect, render, validate, and modify civil-engineering DXF drawings using ezdxf.
  • Progressive-disclosure workflow starting with a summary and drilling down as needed.
  • Works with large drawings (10MB+) through streaming and safe write practices.

Quick Start

Run python scripts/summary.py path/to/drawing.dxf to generate the drawing map, then use render.py, layer.py, query.py, spatial.py, or validate.py to drill down according to the map.

Frequently Asked Questions about dxf-civil

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inspect large DXF drawings without dumping full file contents into chat?

Inspect large DXF drawings using a progressive-disclosure workflow that generates a summary first, then drills down into specific layers or spatial queries without dumping full file contents into chat.

How do I render and validate civil-engineering DXF files using ezdxf?

Render and validate civil-engineering DXF files using ezdxf by running dedicated scripts to map the drawing, then applying render.py and validate.py to audit specific elements according to standards.

Can ezdxf recover malformed DXF files during CAD drawing validation?

Yes, ezdxf.recover gracefully recovers malformed DXF files during CAD drawing validation, allowing you to extract available data from corrupted civil-engineering drawings instead of failing the process.

What is the best way to safely modify civil CAD drawings with Python?

Safely modify civil CAD drawings with Python by enforcing hard rules via standards files and directing all write operations to an output directory, ensuring the original input files remain untouched.

Does this DXF inspection workflow handle large civil drawings over 10MB?

Yes, this DXF inspection workflow handles large civil drawings over 10MB through progressive disclosure, starting with a high-level summary map before drilling down into detailed rendering and queries.

Why should I use progressive disclosure for DXF drawing auditing?

Progressive disclosure for DXF drawing auditing prevents context window overflow by providing a summary map first, allowing targeted drill-downs into layers and spatial data rather than loading entire files.