Removing an organisation now properly handles references appropriately.

This commit is contained in:
Dion Moult
2021-10-01 13:29:10 +10:00
parent 915fa9f9b0
commit 291bb0cd55
3 changed files with 128 additions and 0 deletions
@@ -0,0 +1,12 @@
import ifcopenshell.api
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"application": None}
for key, value in settings.items():
self.settings[key] = value
def execute(self):
self.file.remove(self.settings["application"])