-
Notifications
You must be signed in to change notification settings - Fork 236
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
this.wasmModule.OpenModel is not a function #239
Comments
Hi @tptspe We are going to officially release the new library components on September 20. This library will substitute web-ifc-three and web-ifc-viewer. Both WIV and WIT will remain up, but they will be deprecated and won't be maintained any longer. All our efforts are going towards components now. The API is very similar, so I strongly suggest you make the leap and start using it. You can start using it now (check out the latest alpha version in npm or see the big-restructure branch in the repo. If you still face this issue with it, you can open an issue there and we'll take a look. Cheers! |
Hi @agviegas The API is similar? Please just give me a working example from top to bottom in at most 15 lines where I can add an IFC File via input. Everything more is over the top complicated. Best regards, |
Hi @FlorianB-DE, The API is indeed similar. The reason now it requires more code is because it's more modular/flexible. In programming there's always a tradeoff between abstraction and complexity. You might need more lines, but it can open IFC files orders of magnitude faster, and works for many more use cases. You can find many tutorials in the official documentation. Keep in mind that we are working hard to offer all of this for free. If this new library is not useful for your use case, or you think you can make it better, please just make pull requests to improve this, fork any of our repositories and maintain it yourself, or start your own library/community from scratch. Otherwise, we'll always be happy to listen to friendly feedback. 🙂 |
Hi team.
When I try to load the ifc file in my gatsby project, it occurs the error.
Error loading IFC. ifc.manager.js 71
TypeError: this.wasmModule.OpenModel is not a function at IfcAPI2.OpenModel (web-ifc-api.js:61986:1) at IFCParser.newIfcModel (IFCLoader.js:152:1) at IFCParser.parse (IFCLoader.js:132:1) at async IFCManager.parse (IFCLoader.js:2410:1) at async Object.eval [as onLoad] ifc.manager.js 71
My package versions are like this.
"gatsby": "^4.7.0",
"react": "^17.0.1",
"web-ifc": "^0.0.42",
"web-ifc-viewer": "^1.0.218"
Please help me.
The text was updated successfully, but these errors were encountered: