mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
16 lines
438 B
Python
16 lines
438 B
Python
|
|
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
|