Minor fix.

This commit is contained in:
Dion Moult
2021-10-25 19:32:37 +11:00
parent 58ee049a8f
commit 818e8010a4
4 changed files with 38 additions and 11 deletions
@@ -19,9 +19,9 @@ class Usecase:
name=self.settings["name"],
)
work_plan.CreationDate = ifcopenshell.util.date.datetime2ifc(datetime.now(), "IfcDateTime")
person = ifcopenshell.api.owner.settings.get_person(self.file)
if person:
work_plan.Creators = [person]
user = ifcopenshell.api.owner.settings.get_user(self.file)
if user:
work_plan.Creators = [user.ThePerson]
work_plan.StartTime = ifcopenshell.util.date.datetime2ifc(self.settings["start_time"], "IfcDateTime")
context = self.file.by_type("IfcContext")[0]