Usecases to edit WorkCalendar Attributes in the ifcopenshell.api

This commit is contained in:
bosonprojets
2021-04-29 02:43:14 +00:00
parent b726ba7816
commit f8eb1c178a
7 changed files with 84 additions and 6 deletions
@@ -0,0 +1,12 @@
import ifcopenshell.api
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"time_period": None}
for key, value in settings.items():
self.settings[key] = value
def execute(self):
self.file.remove(self.settings["time_period"])