Import and export the open, free, and simple .BIM model file format
The xeokit SDK enables the import of 3D models from the .BIM format, a JSON-based
file format specifically designed for lightweight, user-friendly, and human-readable storage and sharing of 3D BIM models.
.BIM is an open-source, minimalist file format for BIM, created to be simple to read and write. It serves as a transfer format that contains triangulated meshes
with an associated dictionary of information.
To import a .BIM model into xeokit, use the loadDotBIM function, which will load the file into both a SceneModel
and a DataModel.
Installation
To install the xeokit SDK, run:
npminstall@xeokit/sdk
Usage
In the example below, we create a Viewer with
a WebGLRenderer and a Scene, which holds model geometry and materials.
Additionally, we create a Data, which holds the semantic data for our model.
We set up a View to render the model on a canvas element on the page and attach a CameraControl
to manage the camera using mouse and touch input.
The Scene contains a SceneModel for model geometry and materials, while the Data holds a DataModel
for IFC elements and property sets.
We then use loadDotBIM to load a .BIM file into the SceneModel and DataModel.
The SDKError class is used to handle errors during this process.
xeokit .BIM Importer and Exporter
Import and export the open, free, and simple .BIM model file format
The xeokit SDK enables the import of 3D models from the .BIM format, a JSON-based file format specifically designed for lightweight, user-friendly, and human-readable storage and sharing of 3D BIM models.
.BIM is an open-source, minimalist file format for BIM, created to be simple to read and write. It serves as a transfer format that contains triangulated meshes with an associated dictionary of information.
To import a .BIM model into xeokit, use the loadDotBIM function, which will load the file into both a SceneModel and a DataModel.
Installation
To install the xeokit SDK, run:
Usage
In the example below, we create a Viewer with a WebGLRenderer and a Scene, which holds model geometry and materials.
Additionally, we create a Data, which holds the semantic data for our model.
We set up a View to render the model on a canvas element on the page and attach a CameraControl to manage the camera using mouse and touch input.
The Scene contains a SceneModel for model geometry and materials, while the Data holds a DataModel for IFC elements and property sets.
We then use loadDotBIM to load a .BIM file into the SceneModel and DataModel.
The SDKError class is used to handle errors during this process.
Example:
To export the SceneModel and DataModel back to a .BIM file, use saveDotBIM: