JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 382
  • Score
    100M100P100Q99124F
  • License MPL-2.0

BIM Collaboration Format (BCF) support for IFC-Lite

Package Exports

  • @ifc-lite/bcf

Readme

@ifc-lite/bcf

BIM Collaboration Format (BCF) support for IFClite. Implements BCF 2.1 and 3.0 specifications for issue tracking in BIM projects.

Installation

npm install @ifc-lite/bcf

Quick Start

import { readBCF, createBCFProject, createBCFTopic, addTopicToProject, writeBCF } from '@ifc-lite/bcf';

// Read a BCF file
const project = await readBCF(bcfBuffer);

// Or create a new project
const newProject = createBCFProject({ name: 'My Review', version: '2.1' });
const topic = createBCFTopic({ title: 'Missing fire rating', author: 'user@example.com' });
addTopicToProject(newProject, topic);

// Export (returns Blob)
const blob = await writeBCF(newProject);

Features

  • Read/write BCF 2.1 and 3.0 files
  • Topics, comments, and viewpoints
  • Camera state conversion (viewer <-> BCF format)
  • IFC GlobalId <-> UUID conversion utilities
  • Component visibility and selection in viewpoints

API

See the BCF Guide and API Reference.

License

MPL-2.0