mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
root.remove_product to remove IfcRelFlowControlElements
This commit is contained in:
@@ -167,4 +167,9 @@ class Usecase:
|
||||
self.file.remove(inverse)
|
||||
elif len(inverse.RelatedObjects) == 1:
|
||||
self.file.remove(inverse)
|
||||
elif inverse.is_a("IfcRelFlowControlElements"):
|
||||
if inverse.RelatingFlowElement == self.settings["product"]:
|
||||
self.file.remove(inverse)
|
||||
elif inverse.RelatedControlElements == (self.settings["product"],):
|
||||
self.file.remove(inverse)
|
||||
self.file.remove(self.settings["product"])
|
||||
|
||||
Reference in New Issue
Block a user