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

How can I display an IFC file directly using xbim-viewer.js? #426

Open
SerafinaM opened this issue Jul 5, 2023 · 3 comments
Open

How can I display an IFC file directly using xbim-viewer.js? #426

SerafinaM opened this issue Jul 5, 2023 · 3 comments

Comments

@SerafinaM
Copy link

Dear everyone!
I was able to effectively showcase a wexbim file on an HTML page using the xbim-viewer.js.
But I would like to display an IFC file directly on an HTML page without having to convert it to wexbim.
So, I attempted to convert an IFC file to WexBIM using the xbim-viewer.js, or to find a method for displaying an IFC file directly on an HTML page using the same library.
Unfortunately, I was unable to carry out this.
I sincerely hope that someone can provide me with the assistance I need.
Please note that I utilized xbim-viewer.js instead of a TypeScript library.
Thanks in advance.
Best regards.

@martin1cerny
Copy link
Member

Dear @SerafinaM , the latest version of the viewer is written in Typescript, but published as a standard Javascript package (@xbim/viewer). It has Typescript typings as part of the package, but that is only a developer aid.

You have to run a server-side xbim Toolkit code to convert IFC to wexbim. Transforming IFC for 3D visual presentation is a cost intensive operation and we can't see why it should be paid many times on client side, when it can just be processed once server side.

What is your usecase for this functionality? Is your environment constrained in some way? We also have a managed service, where you can offload the model processing to our cloud. Let me know if you want to find out mode.

@SerafinaM
Copy link
Author

Thank you for your response.
Regarding usecase, I have multiple IFC templates that need to be displayed on an HTML page.
I utilized the xbim-viewer.js library to showcase the wexbim file.
There are numerous IFC templates available and they are updated regularly.
I need to display these either directly or by converting them using xbim-viewer.js, I think.
I would greatly appreciate any advice you could give me.

@martin1cerny
Copy link
Member

What do you mean by IFC templates? And how are they updated? Is this some kind of an online IFC product configurator? Or are these building models being uploaded with new versions?

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

2 participants