Update to ifcopenshell.util.date for handling of IfcDuration with python and import of Planned Durations from P6 .xml exports in blenderBIM

This commit is contained in:
bosonprojets
2021-05-04 00:27:53 +00:00
parent 6b46ff71a6
commit 8a8bdeeaa3
6 changed files with 51 additions and 7 deletions
@@ -13,4 +13,7 @@ class Usecase:
if "Start" in name or "Finish" in name or name == "StatusTime":
if value:
value = ifcopenshell.util.date.datetime2ifc(value, "IfcDateTime")
if name == "ScheduleDuration":
if value:
value = ifcopenshell.util.date.datetime2ifc(value, "IfcDuration")
setattr(self.settings["task_time"], name, value)