CMDBuild Forum

Working with xeokit

I’m using cmdbuild version 3.4.4 and I have activated the xeokit plugin in the administrator console.

When I try to load an IFC file in a BIM project, I have the following error:

org.cmdbuild.etl.EtlException: error converting ifc project to xkt, caused by: java.lang.IllegalArgumentException: target file not found (conversion failed); output=< Starting cmdbuild-xeokit:3.4.3 docker image
Unable to find image ‘cmdbuild-xeokit:3.4.3’ locally
docker: Error response from daemon: pull access denied for cmdbuild-xeokit, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied.
See ‘docker run --help’.
Started container with id
Copying ifc file to container
Error response from daemon: No such container: bash
must specify at least one container source
Starting ifc to xkt conversion
Error response from daemon: No such container: bash
Conversion complete. Copying container file to local dir
must specify at least one container source
Stopping and removing docker container
“docker stop” requires at least 1 argument.
See ‘docker stop --help’.

I was able to download the sources and can see in the XktUtils that cmdbuild loads a ifc_to_xkt_converter.sh file.
image

Looking at that file, it tries to load the docker image dockerimagename="cmdbuild-xeokit:3.4.3". When trying to pull that image using docker pull, the image is not found.

Does anyone know how to get that docker image to make the xeokit work in cmdbuild/openmaint please?

Thanks!

To make the xeokit BIM integration work with cmdbuild/openmaint:

  1. Install docker
  2. Give permissions to your user to run docker commands
  3. Generate the docker image locally running the following command: cmdbuild.sh docker bim. Note that, in the source code, you can find the BimCommandRunner class used to generate the image.
  4. Depending on your version, you will have to tag the created image so that when cmdbuild pulls it, it finds it, e.g.: docker tag cmdbuild-xeokit:3.4.4 cmdbuild-xeokit:3.4.3