mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Fix issues editing work time in ifc4x3 #4295
This commit is contained in:
@@ -55,8 +55,8 @@ class Usecase:
|
||||
|
||||
def execute(self):
|
||||
for name, value in self.settings["attributes"].items():
|
||||
if value and name in ["Start", "Finish"]:
|
||||
if value and name in ("Start", "Finish", "StartDate", "FinishDate"):
|
||||
value = ifcopenshell.util.date.datetime2ifc(value, "IfcDate")
|
||||
if self.file.schema == "IFC4X3":
|
||||
if self.file.schema == "IFC4X3" and name in ("Start", "Finish"):
|
||||
name += "Date"
|
||||
setattr(self.settings["work_time"], name, value)
|
||||
|
||||
@@ -19,5 +19,9 @@
|
||||
},
|
||||
"IfcComplexProperty": {
|
||||
"Specification": "Description"
|
||||
},
|
||||
"IfcWorkTime": {
|
||||
"StartDate": "Start",
|
||||
"FinishDate": "Finish"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user