fix construction schedule import without IfcProject #4412

This commit is contained in:
Sigma Dimensions (Yass)
2024-03-13 03:15:27 +00:00
parent 0cf8574e1f
commit bc833e43ae
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -118,6 +118,7 @@ class Csv2Ifc:
def create_boilerplate_ifc(self):
self.file = ifcopenshell.file(schema="IFC4")
ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcProject")
self.work_plan = self.file.create_entity("IfcWorkPlan")
def create_tasks(self, tasks, parent=None):
+1
View File
@@ -194,6 +194,7 @@ class MSP2Ifc:
def create_boilerplate_ifc(self):
self.file = ifcopenshell.file(schema="IFC4")
ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcProject")
self.work_plan = self.file.create_entity("IfcWorkPlan")
def create_tasks(self, work_schedule):
+1
View File
@@ -196,6 +196,7 @@ class Csv2Ifc:
def create_boilerplate_ifc(self):
self.file = ifcopenshell.file(schema="IFC4")
ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcProject")
def has_property(self, product, property_name):