Welcome! This is the documentation for ezdxf release 1.1.0b2, last updated May 20, 2023.
Quick-Info¶
ezdxf is a Python package to create new DXF documents and read/modify/write existing DXF documents
MIT-License
the intended audience are programmers
requires at least Python 3.8
OS independent
tested with CPython and pypy3
has type annotations and passes
mypy --ignore-missing-imports -p ezdxf
successfuladditional required packages for the core package without add-ons: typing_extensions, pyparsing, numpy, fontTools
read/write/new support for DXF versions: R12, R2000, R2004, R2007, R2010, R2013 and R2018
additional read-only support for DXF versions R13/R14 (upgraded to R2000)
additional read-only support for older DXF versions than R12 (upgraded to R12)
read/write support for ASCII DXF and Binary DXF
retains third-party DXF content
optional C-extensions for CPython are included in the binary wheels, available on PyPI for Windows, Linux and macOS
Included Extensions¶
Additional packages required for these add-ons are not automatically installed during the basic setup, for more information about the setup & dependencies visit the documentation.
drawing
add-on to visualise and convert DXF files to images which can be saved as PNG, PDF or SVG filesr12writer
add-on to write basic DXF entities direct and fast into a DXF R12 file or streamiterdxf
add-on to iterate over DXF entities from the modelspace of huge DXF files (> 5GB) 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 techniqueMTextExplode
add-on for exploding MTEXT entities into single-line TEXT entitiestext2path
add-on to convert text into outline pathsgeo
add-on to support the __geo_interface__meshex
add-on for exchanging meshes with other tools as STL, OFF or OBJ filesodafc
add-on, an interface to the ODA File Converter to read and write DWG fileshpgl2
add-on for converting HPGL/2 plot files to DXF, SVG and PDF
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 DXF Drawings
- Tutorial for Common Graphical Attributes
- Tutorial for Layers
- Tutorial for Creating Linetype Pattern
- Tutorial for Creating Complex Linetype Pattern
- Tutorial for Simple DXF Entities
- Tutorial for Blocks
- Tutorial for LWPolyline
- Tutorial for Text
- Tutorial for MText and MTextEditor
- 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 MultiLeader
- Tutorial for Viewports in Paperspace
- Tutorial for OCS/UCS Usage
- Tutorial for UCS Based Transformations
- Tutorial for Linear Dimensions
- Tutorial for Radius Dimensions
- Tutorial for Diameter Dimensions
- Tutorial for Angular Dimensions
- Tutorial for Arc Dimensions
- Tutorial for Ordinate Dimensions
- Tutorial for the Geo Add-on
- Storing Custom Data in DXF Files
- External References (XREF)
- Howto
- FAQ
- Reference
- Launcher
- Rendering
- Add-ons
- Drawing / Export Add-on
- Geo Interface
- Importer
- dxf2code
- iterdxf
- ODA File Converter Support
- R12 Export
- r12writer
- text2path
- MTextExplode
- HPGL/2 Converter Add-on
- PyCSG
- Plot Style Files (CTB/STB)
- Showcase Forms
- Bin-Packing Add-on
- MeshExchange
- OpenSCAD
- TablePainter
- MTextSurrogate for DXF R12
- ASTM-D6673-10 Exporter
- DXF Internals
- Developer Guides
- Glossary