Compare two DXF files and see what changed. dxf-diff is a free, open source command line tool and Python library (built on ezdxf) for CAD drawing revision comparison. It lists every added, removed and modified entity, reports layer and block definition changes, and writes a self-contained HTML report with a zoomable overlay of both drawings.

LINE end moved (10,0) -> (12,0), TEXT 'REV A' -> 'REV B', INSERT TANK-NOZZLE attribute SIZE '4"' -> '6"'.diff (0 same, 1 different, 2 error) for CI pipelines.dxf-diff --textconv makes git diff readable for .dxf files.pip install git+https://github.com/Shahnawaz75/dxf-diff
Python 3.9 or newer. For PNG output: pip install "dxf-diff[png] @ git+https://github.com/Shahnawaz75/dxf-diff". A PyPI release (pip install dxf-diff) is coming soon.
dxf-diff old.dxf new.dxf # what changed, in the terminal
dxf-diff old.dxf new.dxf --html report.html # visual report with SVG overlay
dxf-diff old.dxf new.dxf --json report.json # machine-readable diff
from dxf_diff import compare
for change in compare("old.dxf", "new.dxf"):
print(change.kind, change.dxftype, change.layer, change.description)
git diff for .dxf files, difftool, CIcompare(), result objects, JSON formatdxf-diff does not read DWG files; convert DWG to DXF first, for example with the free ODA File Converter.
Source code and issues: github.com/Shahnawaz75/dxf-diff (MIT license).