Open TristanLecallierABIME opened 1 month ago
Hey @TristanLecallierABIME!
I was taking a look at this the other day, and defined the best way to do it will require a breaking change in the indexation structure (meaning old-processed indexations won't be compatible with the new one). We avoid making breaking changes in minor versions, but for one single feature it doesn't make sense to create a new major version.
In case we don't find another way that integrates with the existing indexation structure (that is also efficient), we will wait until some other breaking changes to occur to group them all in one single major release 🙂
Will keep this updated!
Describe the bug 📝
The situation : I have an ifc with inside an ifcDocumentReference entity and some ifcElements related to it with an ifcRelAssociatesDocument association. I want to delete the ifcDocumentReference and also the relationship, and then save to ifc.
The issues :
for deleting the entity I use :
await model.setProperties(documentReferenceExpressId, {});
But this does not delete the entity when I save to ifc (withawait propertiesManager.saveToIfc(model, new Uint8Array(originalBuffer));
, because setProperties doesn't impact the ifcPropertiesManager.changeMap which is used to edit the ifc inside saveToIfc function.for deleting association, there is no function like
indexer.removeEntitiesRelation
Reproduction ▶️
No response
Steps to reproduce 🔢
No response
System Info 💻
Used Package Manager 📦
pnpm
Error Trace/Logs 📃
No response
Validations ✅