Issue with IFC Model Placement

System info:

  • Windows 10
  • python 3.12.9
  • compas 2.10.0
  • compas-ifc 1.5.0
  • compas-viewer 1.4.0
  • compas_occ 1.2.1

I’m running into an issue with uploading IFC models to compas. When I open them in various viewers (e.g., BIMcollab), everything displays correctly. However, when I load the same models using compas-ifc and view them with the compas-viewer, the placement of elements is completely off (please see the image).

Here is my script:

path = 'file.ifc'
model = Model(path)

spaces = model.get_entities_by_type("IfcSpace")

viewer = Viewer(width=1200, height=600)
for entity in spaces:
	viewer.scene.add(entity.geometry)
viewer.show()

Has anyone else experienced this? Any ideas on what might be causing it or how to fix it?

Thanks in advance!