How fluo6/ifc-viewer works
IFC Viewer is a local IFC model inspection app, also usable as a browser app on a trusted LAN. The main workflow is to open or drop an IFC file, load and render it in the viewer, then inspect element parameters or use visibility, clipping, edge, and measurement controls. Attribute export builds a workbook from extracted parameters, using browser download or the Electron file-writing bridge. The README documents LAN operation and raw-IFC parameter extraction; unsampled implementation details are represented only where the README or source index supports them.
Main entry points: viewer.ts IFC viewer · export.ts Export controls · properties.ts Properties panel · toolbar.ts File opening
Components 18
Opening and rendering
- File opening
src/ui/toolbar.ts - Drag and drop
src/ui/dropzone.ts - IFC viewer
src/viewer.ts
Model inspection
- Raw IFC reader
src/ifc-parameters.ts - IFC set extraction
src/ifc-sets.ts - Properties panel
src/ui/properties.ts - Class visibility
src/ui/categories.ts - Horizontal clipping
src/ui/clipper.ts - Edge display
src/ui/edges.ts - Ruler measurement
src/ui/ruler.ts - Keyboard controls
src/ui/keybindings.ts - Value formatting
src/format.ts
Attribute export
- Export controls
src/ui/export.ts - Workbook model
src/report.ts - Browser download
src/ui/export.ts
Desktop integration
- Electron host
electron/main.ts - XLSX file writer
electron/xlsx-writer.ts
Other components
- User
Connections 18
- User → File opening: chooses file
README.md - User → Drag and drop: drops file
README.md - File opening → IFC viewer: loads IFC
src/ui/toolbar.ts - Drag and drop → IFC viewer: loads IFC
src/ui/dropzone.ts - IFC viewer → Raw IFC reader: reads parameters
src/viewer.ts - IFC viewer → IFC set extraction: collects sets
src/viewer.ts - Properties panel → IFC viewer: requests selection data
src/ui/properties.ts - Properties panel → Value formatting: formats values
src/ui/properties.ts - Class visibility → IFC viewer: toggles classes
src/ui/categories.ts - Horizontal clipping → IFC viewer: sets clipping
src/ui/clipper.ts - Edge display → IFC viewer: toggles edges
src/ui/edges.ts - Ruler measurement → IFC viewer: places points
src/ui/ruler.ts - Keyboard controls → IFC viewer: controls viewer
src/ui/keybindings.ts - Export controls → IFC viewer: collects attributes
src/ui/export.ts - Export controls → Workbook model: builds workbook
src/ui/export.ts - Export controls → Browser download: downloads workbook
src/ui/export.ts - Export controls → Electron host: requests file save
src/ui/export.ts - Electron host → XLSX file writer: writes workbook
electron/main.ts