Welcome! This is the documentation for ezdxf release 0.18b4, last updated Apr 24, 2022.


  • ezdxf is a Python package to create new DXF files and read/modify/write existing DXF files

  • the intended audience are programmers

  • 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 svg

  • geo add-on to support the __geo_interface__

  • r12writer add-on to write basic DXF entities direct and fast into a DXF R12 file or stream

  • iterdxf add-on to iterate over entities of the modelspace of really big (> 5GB) DXF files which do not fit into memory

  • importer add-on to import entities, blocks and table entries from another DXF document

  • dxf2code add-on to generate Python code for DXF structures loaded from DXF documents as starting point for parametric DXF entity creation

  • acadctb add-on to read/write Plot Style Files (CTB/STB)

  • pycsg add-on for Constructive Solid Geometry (CSG) modeling technique

  • MTextExplode add-on for exploding MTEXT entities into single line TEXT entities


Documentation of development version at https://ezdxf.mozman.at/docs

Documentation of latest release at http://ezdxf.readthedocs.io/

Questions and Answers

Please post questions at the forum or stack overflow to make answers available to other users as well.


Indices and tables