mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Minor fix to allow edit_work_time to work seamlessly for IFC4X3.
This commit is contained in:
@@ -57,4 +57,6 @@ class Usecase:
|
|||||||
for name, value in self.settings["attributes"].items():
|
for name, value in self.settings["attributes"].items():
|
||||||
if value and name in ["Start", "Finish"]:
|
if value and name in ["Start", "Finish"]:
|
||||||
value = ifcopenshell.util.date.datetime2ifc(value, "IfcDate")
|
value = ifcopenshell.util.date.datetime2ifc(value, "IfcDate")
|
||||||
|
if self.file.schema == "IFC4X3":
|
||||||
|
name += "Date"
|
||||||
setattr(self.settings["work_time"], name, value)
|
setattr(self.settings["work_time"], name, value)
|
||||||
|
|||||||
Reference in New Issue
Block a user