DXF inspection and rendering workbench
DxfParser
Open the DXF structure, inspect every code, compare drawings, and render the geometry.
Overview
A browser-native DXF parser, tree inspector, comparison workspace, diagnostics engine, renderer, and lightweight editor for detailed AutoCAD drawing analysis.
DxfParser treats a DXF drawing as both structured data and visible geometry. It parses group-code pairs into a stable hierarchical tree, preserves malformed-container diagnostics, compares documents, builds a render scene, and supports inspection, editing, and round-trip export in a browser-native workbench.
Hierarchical DXF tag and entity tree
Canvas and WebGL rendering
Drawing comparison and diagnostics
Round-trip editing and DXF export
Built for
Where it fits.
- CAD and DXF implementers validating file structure
- Engineering teams comparing or diagnosing drawings
- Developers needing a browser-native DXF inspection and rendering reference
Compatibility & status
Modern browser / JavaScript
Broad, actively tracked coverage
Rendering paths
Not applicable
In the work
Real output,
not a mockup.
Architecture
Clear layers.
Replaceable seams.
Parse
Group-code and value pairs become typed tags, entities, containers, handles, and a stable hierarchical tree.
Inspect
Virtualized tree grids, statistics, handle navigation, diagnostics, filters, and document comparison expose the drawing structure.
Render
A document builder and retained scene graph feed Canvas and WebGL-oriented surfaces with text, layers, styles, and overlays.
Edit + export
The editor adapter mutates scene state and serializes the drawing back into DXF text.
Inside DxfParser
One repository.
Multiple serious systems.
Explore the focused capabilities, their package boundaries, architecture, installation, and smallest useful example.
An iterative parser converts DXF code/value pairs into a hierarchical entity tree with handles, parent metadata, container boundaries, preserved ordering, synthetic end markers, and round-trip serialization.
1 module→02 · Understand and compare drawingsInspection, Diagnostics & DiffVirtualized tree and batch grids expose tags, codes, sizes, handles, classes, blocks, materials, fonts, proxy objects, diagnostics, statistics, filters, history, and side-by-side structural differences.
1 module→03 · Scene graph to Canvas and WebGLDXF RenderingDocument builders, entity adapters, tessellation, text layout, materials, plot styles, layers, blocks, hatches, dimensions, overlays, and retained scene nodes drive Canvas and WebGL-oriented rendering surfaces.
1 module→04 · Change and round-trip drawingsEditor & ExportA lightweight browser editor composes selection, geometry mutation, viewport tools, property editing, file opening, drag/drop, history, save, and DXF serialization around the shared parser and rendering stack.
1 module→Quick start
From package
to first frame.
Choose the package workflow used by your repository, then start from the smallest working example. Replace VERSION with the current stable or prerelease version shown on NuGet.
git clone https://github.com/wieslawsoltes/DxfParser.gitcd DxfParser# Serve this directory with any static web server.const parser = new DxfParser();const document = parser.parse(dxfText);
const serialized = parser.serializeTree(document);Package surface
Start focused.
Compose as needed.
Source, docs, samples, and releases
The repository is the source of truth.
Use the current documentation and samples, inspect changes, report issues, or support continued open-source maintenance.