@ifc-lite/bcf
v1.8.0
Published
BIM Collaboration Format (BCF) support for IFC-Lite
Maintainers
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/bcfQuick 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: '[email protected]' });
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.
