Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue removing an entity (for instance ifcDocumentReference and the related association) #502

Open
4 of 5 tasks
TristanLecallierABIME opened this issue Sep 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TristanLecallierABIME
Copy link

TristanLecallierABIME commented Sep 25, 2024

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 💻

"@thatopen/components": "^2.2.10",
"@thatopen/components-front": "^2.2.2",
"@thatopen/fragments": "^2.2.0",
"web-ifc": "0.0.57",

Used Package Manager 📦

pnpm

Error Trace/Logs 📃

No response

Validations ✅

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
  • Check that this is a concrete bug. For Q&A join our Community.
  • The provided reproduction is a minimal reproducible example of the bug.
@TristanLecallierABIME TristanLecallierABIME added the bug Something isn't working label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant