Open sigurdne opened 6 months ago
Seems to work OK for me:
https://xeokit.io/demo.html?projectId=RAC
Can I please get some info on how to reproduce? Perhaps:
thanks
The IFC was converted some time ago with the command
node ~/public_html/xeokit-bim-viewer-app/node_modules/@xeokit/xeokit-convert/convert2xkt.js -s 'H0700 Krohnåstoppen Bofellesskap ARK #67 2023-02-07 1325.ifc' -o geometry.xkt
Worked fine a for long time (a year) - until I did a
npm update
and
npm run build
I have also tried the conversion with the original command, and the latest @xeokit/xeokit-convert - with the same result
the xeokit-bim-viewer/package.json reads
"name": "@xeokit/xeokit-bim-viewer", "version": "2.4.33",
so probably not the correct method for update...
I thought maybe the xeokit-bim-viewer-app would fetch the latest xeokit-bim-viewer on update
Updated the package.json to:
"dependencies": {
"@xeokit/xeokit-bim-viewer": "2.5.1-beta-18",
"@xeokit/xeokit-convert": "1.1.15-beta-5",
"commander": "^8.0.0",
"glob": "^7.1.7",
"http-server": "^0.12.3",
"puppeteer": "^10.1.0",
"rimraf": "^3.0.2"
}
Did a "npm install" and "npm run build" same result
Can you provide the IFC, and the XKT that was converted some time ago?
Then I can debug and make a regression test etc.
Where do I put them? (I have one IFC that is converted with properties, and another IFC from the same project that is converter without)
Can you attach them to this issue? BTW the direct IFC->XKT conversion mode with convert2xkt is not one that's used much, because it doesn't scale well for large models. We recommend using IfcConvert to convert IFC->gkTF, then convert2xkt to convert glTF to XKT.
ARK: converts without properties using convert2xkt RIE: converts with properies
H0700 Krohnåstoppen Bofellesskap ARK #70.ifc.zip H0700 Krohnåstoppen Bofellesskap RIE #48 2023-02-07 1326.ifc.zip
ARK: converts without properties using convert2xkt RIE: converts with properies
H0700 Krohnåstoppen Bofellesskap ARK #70.ifc.zip H0700 Krohnåstoppen Bofellesskap RIE #48 2023-02-07 1326.ifc.zip
Are these both converted directly from IFC->XKT using convert2xkt, and no other tools?
Yes
Tried the IfcConvert to convert IFC->glTF, and then convert2xkt to convert glTF to XKT. The result was missing all custom property-sets from the model. Is there an option to the command to preserve the property-sets?
@sigurdne a short comment from my side. We with Lindsay recommend using the ifc2gltf converter for production. It is provided here: https://github.com/Creoox/creoox-ifc2gltfcxconverter/releases
Seems like the "Inspect Properties" has stopped working. Complaining about "propertySet is undefined" in xeokit-bim-viewer-app/lib/xeokit-bim-viewer/xeokit-bim-viewer.es.js