Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/resource/add_resource_time.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
438 B
Python
Raw Normal View History

import ifcopenshell.util.date
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {
"resource": None,
}
for key, value in settings.items():
self.settings[key] = value
def execute(self):
resource_time = self.file.create_entity("IfcResourceTime")
self.settings["resource"].Usage = resource_time
return resource_time