Removing an element now also purges connection relationships

This commit is contained in:
Dion Moult
2022-09-24 14:12:45 +10:00
parent 48eb6b70e3
commit 7545313dee
2 changed files with 13 additions and 0 deletions
@@ -70,4 +70,6 @@ class Usecase:
elif inverse.is_a("IfcRelContainedInSpatialStructure"):
if inverse.RelatingStructure == self.settings["product"] or len(inverse.RelatedElements) == 1:
self.file.remove(inverse)
elif inverse.is_a("IfcRelConnectsPathElements"):
self.file.remove(inverse)
self.file.remove(self.settings["product"])