pp2ifc - save calendar identification for pp file to ifc

This commit is contained in:
Andrej730
2024-09-19 15:35:41 +05:00
parent 96756d63d4
commit ddca950f65
+2 -1
View File
@@ -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"])