ThatOpen/web-ifc-viewer

Floor-plans do not work

JoanDuatis opened this issue · 7 comments

Hello,

I'm doing the course exercise on floor-plans generation and it's not working properly.

What happens is that whatever plant you choose it always shows the same image.

I have also copied the code of the course exercise: javascript, html and css
the only modification I made was commenting the line:

//await viewer.IFC.setWasmPath('../../../');

because I have the web-assemblies in the same project folder.

Could it be that some update of the web-ifc-viewer has damaged this functionality?

Hi, does this happen with any IFC file, or just with specific IFC files? If you could set up a minimal repository where we can reproduce this issue, it would be nice.

It happens with any ifc file, even the same one used in the course lesson.

In the image on the right is the floor 01 - Entry Level of the course. On the left is my exercise. I have also clicked on 01 - Entry Level, but the same floor always appears even if I click on any other button.
image

Attached the compressed project file. In order not to exceed the allowed limit, I have deleted the node_modules folder:

FloorPlans.zip

It seems like there is a problem with units in the latest web-ifc. We'll take a look and should fix it very quickly. In the meantime, you can try installing the same version of web-ifc-viewer that we use in the course and it will work.

I have the same problem, but installing course version of web-ifc-viewer ("^1.0.207") did not help. It seems like something wrong directly with viewer.plans.**goTo**(model.modelID, plan) as it works only partly. What else might be a solution?

Here's the link to the repository - https://github.com/AnnaAntonovna/IFC-FloorPlans/tree/main
Here's the web-page - https://annaantonovna.github.io/IFC-FloorPlans/

Thank you in advance!

Hi, I solved this in the last version of web-ifc-viewer. Can you please try? Make sure to rebuild your app, avoid exporting web-ifc-three if you are already using web-ifc-viewer and make sure you are using the correct version of web-ifc (web-ifc": "^0.0.39")

Thank you very much! It works now!

It's happening again in this thread:
#232

I'm using the latest version of WIV