mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Added Usecases to assign, edit and unassign Lag Times to the ifcopenshell.api
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class Usecase:
|
||||
def __init__(self, file, **settings):
|
||||
self.file = file
|
||||
self.settings = {
|
||||
"rel_sequence": None,
|
||||
}
|
||||
for key, value in settings.items():
|
||||
self.settings[key] = value
|
||||
|
||||
def execute(self):
|
||||
if self.settings["rel_sequence"].TimeLag.LagValue:
|
||||
self.file.remove(self.settings["rel_sequence"].TimeLag.LagValue)
|
||||
self.file.remove(self.settings["rel_sequence"].TimeLag)
|
||||
Reference in New Issue
Block a user