From 72cf5cfc5912bb7d06f778a019e5ca916cf362f3 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 18 Aug 2023 23:01:12 +1000 Subject: [PATCH] Minor fix to allow edit_work_time to work seamlessly for IFC4X3. --- .../ifcopenshell/api/sequence/edit_work_time.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/api/sequence/edit_work_time.py b/src/ifcopenshell-python/ifcopenshell/api/sequence/edit_work_time.py index 2ddf9a238a..4938a35504 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/sequence/edit_work_time.py +++ b/src/ifcopenshell-python/ifcopenshell/api/sequence/edit_work_time.py @@ -57,4 +57,6 @@ class Usecase: for name, value in self.settings["attributes"].items(): if value and name in ["Start", "Finish"]: value = ifcopenshell.util.date.datetime2ifc(value, "IfcDate") + if self.file.schema == "IFC4X3": + name += "Date" setattr(self.settings["work_time"], name, value)