Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floor-plans do not work #221

Open
JoanDuatis opened this issue May 17, 2023 · 7 comments
Open

Floor-plans do not work #221

JoanDuatis opened this issue May 17, 2023 · 7 comments

Comments

@JoanDuatis
Copy link

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?

@agviegas
Copy link
Collaborator

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.

@JoanDuatis
Copy link
Author

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

@agviegas
Copy link
Collaborator

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.

@AnnaAntonovna
Copy link

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!

@agviegas
Copy link
Collaborator

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")

@AnnaAntonovna
Copy link

Thank you very much! It works now!

@MiguelG97
Copy link

It's happening again in this thread:
#232

I'm using the latest version of WIV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants