Group codes into stable structure

DXF Parser & Tree

See the drawing as explicit, navigable file structure.

Explore source
Parent systemDxfParser
StatusActive
Modules1
RepositoryDxfParser/dxf-parser.js

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. 01

    Iterative O(n) grouping

  2. 02

    Handles and parent metadata

  3. 03

    Malformed-container recovery

  4. 04

    Round-trip DXF serialization

From intent
to working system.

01

Tokenize

Alternating code and value lines become ordered DXF tags.

02

Group

An explicit stack builds sections, tables, blocks, objects, and entity children.

03

Repair

Missing container terminators produce traceable synthetic end nodes.

04

Serialize

The stored order and hierarchy emit back into DXF text.

Adopt this
capability.

Start with the primary module, then add the related packages only when the application needs those layers. Replace VERSION with the current NuGet version.

01 · Install
Terminal
git clone https://github.com/wieslawsoltes/DxfParser.git
# Load components/utils.js and components/dxf-parser.js.
02 · Use · javascript
quick-start.js
const parser = new DxfParser();
const nodes = parser.parse(dxfText);
const layerTable = parser.findNodeByIdIterative(nodes, nodeId);
const roundTrip = parser.serializeTree(nodes);

Use one layer.
Compose the rest.

Read the module beside the complete system.

The implementation, samples, issues, and release notes stay in the parent repository so module details remain connected to the product architecture.

DxfParser

Search everything.

Loading the index…

move open esc close

Preparing metadata and full-text search…