mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
13 lines
435 B
Python
13 lines
435 B
Python
class Usecase:
|
|
def __init__(self, file, settings={}):
|
|
self.file = file
|
|
self.settings = {"context": None}
|
|
for key, value in settings.items():
|
|
self.settings[key] = value
|
|
|
|
def execute(self):
|
|
# TODO: this is a light remove only
|
|
for subcontext in self.settings["context"].HasSubContexts:
|
|
self.file.remove(subcontext)
|
|
self.file.remove(self.settings["context"])
|