BCFManager

class Communicator.BCFManager()

This class provides an interface to the BIM Collaboration Format related features of the viewer.

Constructors


Constructors

BCFManager.constructor(viewer)
Arguments
Return type

BCFManager()

Methods

addBCFFromBuffer

BCFManager.addBCFFromBuffer(buffer, filename)

Imports BCF data from a buffer.

Arguments
  • buffer (ArrayBuffer()) –

  • filename (BCFName) –

Return type

Promise <void>

addBCFFromFile

BCFManager.addBCFFromFile(filename)

Imports BCF data from a BCF file.

Arguments
Return type

Promise <void>

createBCFData

BCFManager.createBCFData(filename)

Creates a BCF file.

Arguments
Return type

BCFData()

getBCFData

BCFManager.getBCFData(id)

Gets the parsed BCF data for a BCF file.

Arguments
  • id (number()) – corresponding to the BCF file.

Return type

BCFData() | null

getBCFMap

BCFManager.getBCFMap()

Gets a map containing BCF data correlated with the BCF filename.

Return type

Map <number, BCFData()>

removeBCFData

BCFManager.removeBCFData(id)

Removes the parsed BCF data for a BCF file.

Arguments
  • id (number()) – corresponding to the BCF file.

Return type

void