Fixing bugs for Scheduling Module IFC4D (#1826)

* P6XML Parser failing on calendar type

* add work plan references a get_person which is not an attribute. modified to get_user to work

Co-authored-by: Dion Moult <dion@thinkmoult.com>
This commit is contained in:
HassanEmam
2021-10-25 10:56:45 +01:00
committed by GitHub
parent 566512f7bc
commit 3fd944a956
+1 -2
View File
@@ -185,8 +185,7 @@ class P62Ifc:
def create_calendars(self):
for calendar in self.calendars.values():
calendar["ifc"] = ifcopenshell.api.run(
"sequence.add_work_calendar", self.file, name=calendar["Name"], predefined_type=calendar["Type"]
)
"sequence.add_work_calendar", self.file, name=calendar["Name"])
self.process_working_week(calendar["StandardWorkWeek"], calendar["ifc"])
self.process_exceptions(calendar["HolidayOrExceptions"], calendar["ifc"])