Removing products now handles purging a bunch more inverse relationships

This commit is contained in:
Dion Moult
2022-10-08 21:12:11 +11:00
parent fb6d24b3ed
commit 7d779130e1
3 changed files with 66 additions and 5 deletions
@@ -78,9 +78,10 @@ class Usecase:
if to_element.ObjectPlacement:
new_opening.ObjectPlacement.PlacementRelTo = to_element.ObjectPlacement
# For now, we do copy opening representations
new_opening.Representation = ifcopenshell.util.element.copy_deep(
self.file, opening.Representation
)
if opening.Representation:
new_opening.Representation = ifcopenshell.util.element.copy_deep(
self.file, opening.Representation
)
elif inverse.is_a("IfcRelFillsElement"):
continue
elif inverse.is_a("IfcRelConnectsPathElements"):