@willsunagency/ifc-step-parser
v1.0.0
Published
Lightweight STEP physical file (ISO 10303-21) and Industry Foundation Classes (IFC) syntax tokenizer.
Maintainers
Readme
@willsunagency/ifc-step-parser
Lightweight STEP Physical File (ISO 10303-21) and Industry Foundation Classes (IFC 2x3, IFC4, IFC4.3) syntax tokenizer and spatial entity analyzer.
Maintained by the open-source engineering contributors at CADGuide.tools.
Architectural Background
In open BIM workflows, federated coordination requires reliable inspection of ISO 10303-21 exchange files. When multi-gigabyte models are exported from Revit, ArchiCAD, or Allplan, subtle header mismatches (e.g., claiming IFC4 while utilizing IFC2X3 geometries) crash downstream model checkers like Solibri or web-IFC engines.
This zero-dependency parser extracts schema definitions and tallies building element occurrences (IfcWall, IfcBeam, IfcColumn, IfcSpace) in milliseconds.
Installation
npm install @willsunagency/ifc-step-parserUsage
const fs = require('fs');
const { parseStepHeader, countIfcEntities } = require('@willsunagency/ifc-step-parser');
const ifcData = fs.readFileSync('commercial_tower.ifc', 'utf-8');
const headerInfo = parseStepHeader(ifcData);
console.log('Schema:', headerInfo.schema);
const elementCounts = countIfcEntities(ifcData);
console.log('Building Elements:', elementCounts);Engineering Resources & Diagnostic Utilities
- CAD Software Comparison Matrix: Detailed matrix comparing BIM compliance, export fidelity, and licensing costs across top AEC platforms.
- CAD DWG Version Checker: Verify binary header versions client-side before importing legacy drawings into BIM coordinators.
- Sheet Metal K-Factor Calculator: Interactive bending formula engine for structural steel and sheet metal fabrication.
- AEC Troubleshooting & Performance Guides: Solutions for missing IFC coordinates, shared coordinate corruption, and IFC spatial tree collapses.
- CADGuide Engineering Hub: Discover 200+ specialized design software suites, open-source utilities, and CAD calculators.
License
MIT © CADGuide.tools Team
