Welcome! This is the documentation for ezdxf release 0.16b0, last updated Feb 21, 2021.
Quick-Info¶
ezdxf is a Python package to create new DXF files and read/modify/write existing DXF files
the intended audience are developers
requires at least Python 3.7
OS independent
additional required packages: pyparsing
optional Cython implementation of some low level math classes
MIT-License
read/write/new support for DXF versions: R12, R2000, R2004, R2007, R2010, R2013 and R2018
additional read support for DXF versions R13/R14 (upgraded to R2000)
additional read support for older DXF versions than R12 (upgraded to R12)
read/write support for ASCII DXF and Binary DXF
preserves third-party DXF content
Included Extensions¶
drawing
add-on to visualise and convert DXF files to images which can be saved to various formats such as png, pdf and svggeo
add-on to support the __geo_interface__r12writer
add-on to write basic DXF entities direct and fast into a DXF R12 file or streamiterdxf
add-on to iterate over entities of the modelspace of really big (> 5GB) DXF files which do not fit into memoryimporter
add-on to import entities, blocks and table entries from another DXF documentdxf2code
add-on to generate Python code for DXF structures loaded from DXF documents as starting point for parametric DXF entity creationacadctb
add-on to read/write Plot Style Files (CTB/STB)pycsg
add-on for Constructive Solid Geometry (CSG) modeling technique
Website¶
Documentation¶
Documentation of development version at https://ezdxf.mozman.at/docs
Documentation of latest release at http://ezdxf.readthedocs.io/
Source Code & Feedback¶
Source Code: http://github.com/mozman/ezdxf.git
Issue Tracker: http://github.com/mozman/ezdxf/issues
Questions and Answers¶
Please post questions at the forum or stack overflow to make answers available to other users as well.
Contents¶
- Introduction
- Setup & Dependencies
- Usage for Beginners
- Basic Concepts
- Tutorials
- Tutorial for getting data from DXF files
- Tutorial for creating simple DXF drawings
- Tutorial for Layers
- Tutorial for Blocks
- Tutorial for LWPolyline
- Tutorial for Text
- Tutorial for MText
- Tutorial for Spline
- Tutorial for Polyface
- Tutorial for Mesh
- Tutorial for Hatch
- Tutorial for Hatch Pattern Definition
- Tutorial for Image and ImageDef
- Tutorial for Underlay and UnderlayDefinition
- Tutorial for Linetypes
- Tutorial for Complex Linetypes
- Tutorial for OCS/UCS Usage
- Tutorial for UCS Based Transformations
- Tutorial for Linear Dimensions
- Tutorial for Radius Dimensions
- Tutorial for Diameter Dimensions
- Tutorial for the Geo Add-on
- Howto
- FAQ
- Reference
- Rendering
- Add-ons
- DXF Internals
- Developer Guides
- Glossary