@willsunagency/dxf-layer-extractor
v1.0.0
Published
Zero-cloud lightweight AutoCAD DXF layer and entity stream parser for browser and Node.js pipelines.
Maintainers
Readme
@willsunagency/dxf-layer-extractor
High-performance, zero-dependency streaming AutoCAD DXF entity and layer extraction engine built for client-side web applications and serverless microservices.
Part of the open engineering tooling suite by CADGuide.tools.
Key Features
- Zero-Cloud & 100% Client-Side Safe: Parse multi-megabyte CAD blueprints directly in browser memory without sending confidential CAD files to remote servers.
- Micro-Footprint: Zero external dependencies; under 3KB minified.
- Section Parsing: Extracts all layers defined in group code
8and entity records from theENTITIESsection. - Cross-Platform Compatibility: Works with AutoCAD (Release 12 to 2026), LibreCAD, FreeCAD, BricsCAD, and DraftSight exports.
Installation
npm install @willsunagency/dxf-layer-extractorUsage
const fs = require('fs');
const { parseDxfLayers } = require('@willsunagency/dxf-layer-extractor');
const dxfString = fs.readFileSync('sample_floorplan.dxf', 'utf-8');
const result = parseDxfLayers(dxfString);
console.log('Detected Layers:', result.layers);
console.log('Total Processed Entities:', result.entityCount);Related Engineering Tooling & Diagnostic Resources
- CAD DWG Version Checker: Instant, zero-cloud inspection of DWG file headers (AC1015 through AC1032) directly inside your web browser.
- Sheet Metal K-Factor Calculator: Calculate neutral axis offsets, bend deductions, and flat pattern blank sizes for CNC press brakes.
- CAD Software Comparison Matrix: Comprehensive benchmarks comparing modeling kernels, licensing costs, and format compatibility.
- CAD Troubleshooting & Performance Guides: Detailed technical walkthroughs covering CAD crash remediation, font substitution, and large-assembly optimization.
- Official Engineering Portal: Search the full database of parametric 3D CAD, BIM, and AEC design suites.
