mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Rudimentary handling of purging voids and fills
This commit is contained in:
@@ -34,4 +34,9 @@ class Usecase:
|
|||||||
ifcopenshell.api.run("grid.remove_grid_axis", self.file, axis=axis)
|
ifcopenshell.api.run("grid.remove_grid_axis", self.file, axis=axis)
|
||||||
|
|
||||||
# TODO: remove object placement and other relationships
|
# TODO: remove object placement and other relationships
|
||||||
|
for inverse in self.file.get_inverse(self.settings["product"]):
|
||||||
|
if inverse.is_a("IfcRelFillsElement"):
|
||||||
|
self.file.remove(inverse)
|
||||||
|
elif inverse.is_a("IfcRelVoidsElement"):
|
||||||
|
self.file.remove(inverse)
|
||||||
self.file.remove(self.settings["product"])
|
self.file.remove(self.settings["product"])
|
||||||
|
|||||||
Reference in New Issue
Block a user