ThatOpen / engine_web-ifc

Reading and writing IFC files with Javascript, at native speeds.
https://thatopen.github.io/engine_web-ifc/demo
Mozilla Public License 2.0
585 stars 176 forks source link

[Bug]: Error loading spatial structure on model with IfcAlignment #776

Closed MichalNekvasil closed 1 month ago

MichalNekvasil commented 3 months ago

What happened?

Hello, I try to get spatial structure from model (viewer.IFC.getSpatialStructure(modelID, true)), but it crashes on line with IfcAlignment. image

I will attach the model too. There is no problem opening it in BIMVision for example ... model_001.zip

Thank you for your help

Have a nice day Michal Nekvasil

Version

0.0.5

What browsers are you seeing the problem on?

Chrome

Relevant log output

web-ifc-api.js:72377 Uncaught (in promise) TypeError: FromRawLineData[this.modelSchemaList[modelID]][rawLineData.type] is not a function
    at IfcAPI2.GetLine (web-ifc-api.js:72377:1)
    at WebIfcPropertyManager.getItemProperties (WebIfcPropertyManager.ts:8:31)
    at WebIfcPropertyManager.getChildren (BasePropertyManager.ts:34:47)
    at async WebIfcPropertyManager.getSpatialNode (BasePropertyManager.ts:21:9)
    at async WebIfcPropertyManager.getChildren (BasePropertyManager.ts:37:13)
    at async WebIfcPropertyManager.getSpatialNode (BasePropertyManager.ts:21:9)
    at async WebIfcPropertyManager.getSpatialStructure (WebIfcPropertyManager.ts:20:9)
    at async PropertyManager.getSpatialStructure (PropertyManager.ts:70:16)
    at async getTreeData (TreeViewModelStructure.tsx:324:31)

Anything else?

No response

MichalNekvasil commented 1 month ago

Is there any progress?

beachtom commented 1 month ago

Sorry no solution as of yet.

beachtom commented 1 month ago

Just fixed it!