Fix bug where FM types for COBie were not selected properly

This commit is contained in:
Dion Moult
2021-08-06 11:43:57 +10:00
parent 47440edb8b
commit 3b5bc531cb
@@ -78,7 +78,7 @@ def get_cobie_types(ifc_file):
elements = []
for ifc_class in cobie_type_classes:
try:
elements += self.file.by_type(ifc_class)
elements += ifc_file.by_type(ifc_class)
except:
pass
return elements
@@ -88,7 +88,7 @@ def get_cobie_components(ifc_file):
elements = []
for ifc_class in cobie_component_classes:
try:
elements += self.file.by_type(ifc_class)
elements += ifc_file.by_type(ifc_class)
except:
pass
return elements