mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 02:24:30 +00:00
BlenderBIM and ifcopenshell.api features to enable adding and editing resource time information
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user