The xeokit SDK allows us to import 3D models from .BIM, 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 and minimalist file format for BIM that's built to be easy to read and write. Essentially, .BIM
is a transfer format that contains triangulated meshes with a dictionary of information attached to them.
To import a .BIM model into xeokit, simply use the loadDotBIM function, which will load the file into both
a SceneModel and a DataModel.
In the example below, we'll import a .BIM file into a SceneModel
and a DataModel. The @xeokit/core!SDKError class
is used to handle errors that may occur during the process:
import { Scene } from"@xeokit/scene"; import { Data } from"@xeokit/data"; import { loadDotBIM } from"@xeokit/dotbim";
xeokit .BIM Importer
Import building models from the open, free and simple .BIM file format
The xeokit SDK allows us to import 3D models from .BIM, 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 and minimalist file format for BIM that's built to be easy to read and write. Essentially, .BIM is a transfer format that contains triangulated meshes with a dictionary of information attached to them.
To import a .BIM model into xeokit, simply use the loadDotBIM function, which will load the file into both a SceneModel and a DataModel.
Installation
Usage
In the example below, we'll import a .BIM file into a SceneModel and a DataModel. The @xeokit/core!SDKError class is used to handle errors that may occur during the process: