From f451c51451481d6fe08ec147e0200ff5889c7005 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 9 Jun 2022 18:59:20 +1000 Subject: [PATCH] Fix bug where some appended assets created invalid graphs due to poor purging --- src/blenderbim/docs/users/dealing_with_large_models.rst | 2 +- .../ifcopenshell/api/project/append_asset.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/docs/users/dealing_with_large_models.rst b/src/blenderbim/docs/users/dealing_with_large_models.rst index a6a44b83a6..346969d959 100644 --- a/src/blenderbim/docs/users/dealing_with_large_models.rst +++ b/src/blenderbim/docs/users/dealing_with_large_models.rst @@ -105,7 +105,7 @@ the boolean, or create a **Blacklist Filter Mode** to exclude the element from import. These types of errors are usually problems with external software (i.e. not -internationally by the end-user) and typically do not affect critical geometry +intentionally by the end-user) and typically do not affect critical geometry and can be worked around. Fully resolving boolean issues is a complex case by case topic and not covered diff --git a/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py b/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py index 3f73d3c07a..828335c0d6 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py +++ b/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py @@ -109,7 +109,7 @@ class Usecase: for inverse in self.file.get_inverse(added_context): ifcopenshell.util.element.replace_attribute(inverse, added_context, equivalent_existing_context) for added_context in added_contexts: - ifcopenshell.util.element.remove_deep(self.file, added_context) + ifcopenshell.util.element.remove_deep2(self.file, added_context) element_type = ifcopenshell.util.element.get_type(self.settings["element"]) if element_type: