Allow to remove entities (for instance ifcDocumentReference and the related association) #502
Open
4 of 5 tasks
Labels
feature
Something new that we could do
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 (with
await 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 ✅
The text was updated successfully, but these errors were encountered: