From ddca950f65ec9905fefe5268324bf72c871eb860 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 19 Sep 2024 15:35:41 +0500 Subject: [PATCH] pp2ifc - save calendar identification for pp file to ifc --- src/ifc4d/ifc4d/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifc4d/ifc4d/common.py b/src/ifc4d/ifc4d/common.py index 13a4f4beea..896f604a61 100644 --- a/src/ifc4d/ifc4d/common.py +++ b/src/ifc4d/ifc4d/common.py @@ -95,8 +95,9 @@ class ScheduleIfcGenerator: ) def create_calendars(self) -> None: - for calendar in self.calendars.values(): + for calendar_id, calendar in self.calendars.items(): calendar["ifc"] = ifcopenshell.api.run("sequence.add_work_calendar", self.file, name=calendar["Name"]) + calendar["ifc"].Identification = str(calendar_id) self.process_working_week(calendar["StandardWorkWeek"], calendar["ifc"]) self.process_exceptions(calendar.get("HolidayOrExceptions"), calendar["ifc"])