24.21.0 • Published 9 months ago
@pilotdev/pilot-bim-dataprovider v24.21.0
Installation
npm install @pilotdev/pilot-bim-dataprovider
Summary
This package contains tools for reading and writing data from information model data container (.bm files). This component is part of the Pilot Cloud service (https://pilotcloud.ascon.net/).
How to use
Initialize and read data from information model data container (.bm file).
import { BimDataBigIntMaxValue, BimDataProvider } from "@pilotdev/pilot-bim-dataprovider";
// Create new instance of BimModel
const bimDataProvider = new BimDataProvider();
// Initialize model.
// Method returns Promise<void>
await bimDataProvider.init();
// Read bm file and open it
// fileBuffer - Buffer of a .bm file
// uniqueId - must be unique identfier
const modelPart = await bimDataProvider.openModelPart("uniqueId", fileBuffer);
// Get all elements of the model-part
const elements = await modelPart.getAllElements();
// Get latest version of properties of the element
const properties = await modelPart.getElementProperties(elements[5].guid, BimDataBigIntMaxValue);
// Get all tessellations
const tesselations = await modelPart.getAllTessellations();
// Close model part after end
await modelPart.close();
// Dispose BimModel after all
await bimDataProvider.dispose();
24.21.0
9 months ago
24.20.0
10 months ago
24.19.0
10 months ago
24.18.0
12 months ago
24.17.0
12 months ago
24.14.0
1 year ago
24.16.0
1 year ago
24.15.0
1 year ago
24.13.0
1 year ago
24.12.0
1 year ago
24.10.0
1 year ago
24.9.0
1 year ago
24.4.0
1 year ago
24.2.0
1 year ago
24.0.1
1 year ago
23.0.12
2 years ago
23.0.11
2 years ago
23.0.6
2 years ago
23.0.5
2 years ago
23.0.8
2 years ago
23.0.7
2 years ago
23.0.10
2 years ago
23.0.4
2 years ago
23.0.3
2 years ago
22.0.0
2 years ago
23.0.2
2 years ago
23.0.0
2 years ago