Compare commits

...

1 Commits

Author SHA1 Message Date
Dion Moult e98398c348 Support importing elements with no representations 2021-06-10 11:13:49 +10:00
@@ -346,6 +346,8 @@ class IfcImporter:
self.profile_code("Create native products")
self.create_products()
self.profile_code("Create products")
self.create_empty_products()
self.profile_code("Create empty products")
self.create_type_products()
self.profile_code("Create type products")
self.create_annotation()
@@ -715,6 +717,11 @@ class IfcImporter:
break
print("Done creating geometry")
def create_empty_products(self):
for element in self.file.by_type("IfcElement"):
if not element.Representation:
self.create_product(element)
def create_annotation(self):
self.create_curve_products(self.file.by_type("IfcAnnotation"))