| 59 | } |
| 60 | |
| 61 | def execute(self): |
| 62 | import time |
| 63 | |
| 64 | start = time.time() |
| 65 | print("Started") |
| 66 | self.parse_xml() |
| 67 | settings = { |
| 68 | "work_plan": self.work_plan, |
| 69 | "project": self.project, |
| 70 | "calendars": self.calendars, |
| 71 | "wbs": self.wbs, |
| 72 | "root_activities": self.root_activites, |
| 73 | "activities": self.activities, |
| 74 | "relationships": self.relationships, |
| 75 | "resources": self.resources, |
| 76 | } |
| 77 | ifcCreator = ScheduleIfcGenerator(self.file, self.output, settings) |
| 78 | end = time.time() |
| 79 | |
| 80 | ifcCreator.create_ifc() |
| 81 | end2 = time.time() |
| 82 | print("Parsing time is", end - start) |
| 83 | print("IFC Creation took", end2 - end) |
| 84 | print("Overall Time", end2 - start) |
| 85 | |
| 86 | def parse_xml(self): |
| 87 | tree = ET.parse(self.xml) |