BIM.works 1.4
What BIM.works 1.4 changed over 1.3 — Qid, QidSet and QidMap, BQL as the only query language, web workers and culling in the 3D viewer, revised geo referencing — and the breaking changes an upgrade from 1.3 needs.
BIM.works 1.4 followed 1.3, and 1.5 followed it. It is the release with the largest breaking changes before 2.0: BQL replaced the JSON query language everywhere, and objects are identified by Qid objects instead of strings. The 3D viewer uses up to almost three times less memory, depending on the model. The first link of every row is the page that documents the feature today.
Breaking changes#
| Change | Since | Where it is documented |
|---|---|---|
Qid, QidSet and QidMap — the JavaScript SDK and the viewers use Qid, QidSet and QidMap objects wherever they handle objects. Applications need small changes, and memory use and speed improve a lot on models with very many objects. |
1.4.0 | Qid, QidSet, QidMap · Qid · Select and colour objects |
BQL only — the repository no longer runs the JSON query language. In the JavaScript SDK the old method names now run BQL: bimWorksClient.bim.query takes a BQL query, with a slightly different signature. |
1.4.0 | Run a BQL query · BQL and the JSON format · BQL |
| Web workers — the 3D viewer spreads its work over several CPU cores with web workers. Some frameworks and build pipelines need changes for that. | 1.4.0 | workers and isolation · the setting today |
Type visibility in the ObjectStateManager only — the 3D viewer no longer manages the visibility of IFC types itself, which used to clash with what the ObjectStateManager did. |
1.4.0 | the viewers' shared state · Hide and isolate |
3D viewer#
| Feature | Since | Where it is documented |
|---|---|---|
| Culling — a model that is completely out of view is not drawn. A finer-grained culling for very large models, mostly infrastructure, was a preview behind a feature flag. | 1.4.0 | how culling works · realtimeSettings.culling |
| Selection wireframes — drawn much more efficiently, no longer generated on the first selection, and they use less memory. A wireframe mode draws them only while the camera is still, which navigates faster at the cost of slight flicker; the BIM.works UI remembers the choice. | 1.4.0 | fatWireframes · selection appearance in the app |
Project, building and storey objects — IfcProject, IfcBuilding and IfcBuildingStorey can have geometry of their own, and their bounding boxes are no longer shown by default. |
1.4.0 | Spatial structure · Show building storeys |
| Base layers — a base layer such as OpenStreetMap takes one draw call instead of 441, which is much faster on slower devices. | 1.4.0 | Geo mode |
| Keyboard navigation — several keys work at the same time, and holding Shift speeds up. | 1.4.1 | Default key bindings · in the app |
| Rendering on the main thread — optional, for frameworks and build pipelines that do not support web workers, at a cost in performance. | 1.4.1 | technologyAllowed |
| Point clouds — server-side processing is faster, uses less memory and samples every point; rendering uses less CPU while navigating. | 1.4.1 | Show point clouds |
| Destroying a viewer — a memory leak that kept a destroyed viewer alive is fixed, which matters when an application creates and destroys several viewers in one session. | 1.4.1 | unloading and clean-up |
Repository and SDKs#
| Feature | Since | Where it is documented |
|---|---|---|
| Geo referencing — the rotation is always taken into account, and IFC4 geo referencing is the preferred source. The offset between models is computed from their original geo references where possible, which is more accurate than going through WGS 84. | 1.4.0 | Geo-referencing in IFC · LOCAL and GEO placement |
The unit of the CRS — a geo reference from an IfcMapConversion whose projected CRS defines a unit takes that unit into account. |
1.4.1 | Geo-referencing in IFC · Get the geo reference |
| Text to action retries — up to three times when the model returns invalid BQL, BVL or BCL. | 1.4.1 | LLM assistance |
A shaded Java client — the same nl.bimbase.bimworks:client artifact with the classifier shaded keeps its dependencies from clashing with the application's. |
1.4.1 | the shaded Java artifact |
For operators, 1.4.0 can serve the 3D geometry from S3-compatible object storage (AWS S3, Cloudflare R2, Azure Blob Storage) instead of from the repository. The repository then needs less storage and bandwidth.
Upgrading from 1.3#
- JavaScript. Use
Qid,QidSetandQidMapwhere strings were used (Qid, QidSet, QidMap). Rewrite JSON queries as BQL and callbimWorksClient.bim.querywith the new signature (Run a BQL query). Set the visibility of IFC types through theObjectStateManager(Hide and isolate). Check that the build serves the viewer's web workers (Embed the viewer). - Java.
query(BimQuery, …)is gone: query with a BQL string,query(String, Set<UUID>).textToAction(String)becametextToAction(String text, String transcription, Set<UUID> versionUuids, QueryMainType mainType). The methods that create versions, nodes and recursive-node tokens take a trailingboolean linkAccount. - Going on to 1.5 or later, the instance reindexes its models (upgrading to 1.5).