25.6.0 • Published 8 months ago

@pilotdev/pilot-bim-dataprovider v25.6.0

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

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.22.0

1 year ago

24.23.0

1 year ago

24.24.0

1 year ago

25.6.0

8 months ago

25.5.0

9 months ago

25.2.0

11 months ago

25.1.0

12 months ago

25.4.0

10 months ago

25.3.0

10 months ago

24.21.0

1 year ago

24.20.0

1 year ago

24.19.0

1 year ago

24.18.0

1 year ago

24.17.0

2 years ago

24.14.0

2 years ago

24.16.0

2 years ago

24.15.0

2 years ago

24.13.0

2 years ago

24.12.0

2 years ago

24.10.0

2 years ago

24.9.0

2 years ago

24.4.0

2 years ago

24.2.0

2 years ago

24.0.1

2 years ago

23.0.12

2 years ago

23.0.11

2 years ago

23.0.6

2 years ago

23.0.5

3 years ago

23.0.8

2 years ago

23.0.7

2 years ago

23.0.10

2 years ago

23.0.4

3 years ago

23.0.3

3 years ago

22.0.0

3 years ago

23.0.2

3 years ago

23.0.0

3 years ago