Closed Can-Gr closed 2 weeks ago
Hey @Can-Gr! This was already solved in @thatopen/components@2.1.5. Closing this!
Thank you very much @HoyosJuan ! It's working!
@HoyosJuan After the library updated to its latest version, adding Pset doesnโt work anymore.
It gives no error when code runs but when I download the model I canโt see the new Pset or I canโt even download the file in some versions (IFC4X3_ADD2) it gives me error of : Download failed: TypeError: Cannot read properties of undefined (reading 'IfcRelDefinesByProperties')
Old versions of library are :
"@thatopen/components": "^2.1.21",
"@thatopen/components-front": "^2.1.23",
"@thatopen/ui": "^2.1.3",
"@thatopen/ui-obc": "^2.1.6",
Hey @Can-Gr! I'm testing this right now with a IFC4X3_ADD2 model and have created (and downloaded) the pset in the model successfully. ๐ค How are you creating the pset?
I've just realized the pset and the properties gets created... but they are not assigned to the elements. Is that the same behavior you have?
Hey @HoyosJuan! I can create new pset, it's property and value to that property and assign it to the element successfully. Because when I check pset properties with model.getProperties of selected element, after I get the psets of that element with indexer.getEntityRelations, I can see everything.
And then I download the new model with a button. This works in every version(so far) except IFC4X3_ADD2.
Got i! Discovered the problem. Is solved now and it's already available in @thatopen/components@2.3.14
. Let me know! Will close this.
Hey @HoyosJuan, thank you, now I can create pset and download it and new pset is visible in the right element with right value.
However.. In any version of IFC, when I create a new pset and then delete it (which deletes successfully in the model) and then download it, I receive error of :
Download failed: RuntimeError: memory access out of bounds
at web-ifc.wasm:0xcb64c
at web-ifc.wasm:0xca2a2
at Object.RemoveLine (eval at newFunc (web-ifc-api.js:6010:1),
When I delete any existing pset, which comes with the model, and then download it, there's no error.
I've tested it with different versions and sizes.
Hey @Can-Gr! Seems to be a different problem than the one from this issue. May you create another different issue with this, please? Thanks!
Hi @HoyosJuan, alright I've opened it.
Describe the bug ๐
I am creating new pset in IFC4X3_ADD2 file but it gives me error of Cannot read properties of undefined (reading 'IfcGloballyUniqueId').
const { pset } = await propertiesManager.newPset(model, "New Field");
I tried the same code to create pset in IFC4, it works as expected and creates a new pset.
Reproduction โถ๏ธ
No response
Steps to reproduce ๐ข
No response
System Info ๐ป
Used Package Manager ๐ฆ
npm
Error Trace/Logs ๐
No response
Validations โ