ThatOpen / web-ifc-viewer

Graphics engine and toolkit for client applications.
MIT License
947 stars 235 forks source link

Problem with selecting element in IFC files v4.3 #251

Open Ser1ous opened 9 months ago

Ser1ous commented 9 months ago

On this demo: https://ifcjs.github.io/web-ifc-viewer/example/index I tried to upload IFC file v4.3 The file loaded without any problem, but when I tried to select any element by double-clicking I caught the error: Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'FromRawLineData[this.modelSchemaList[modelID]][rawLineData.type]')

The same error I catch in my project on this function: await viewer.IFC.getSpatialStructure(model.modelID, true)

agviegas commented 9 months ago

Hi @Ser1ous

We have officially released the new library components on September 20. This library substitutes 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. You can find the new docs here.

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. If you still face this issue with it, you can open an issue there and we'll take a look.