mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
Fix bug where FM types for COBie were not selected properly
This commit is contained in:
@@ -78,7 +78,7 @@ def get_cobie_types(ifc_file):
|
|||||||
elements = []
|
elements = []
|
||||||
for ifc_class in cobie_type_classes:
|
for ifc_class in cobie_type_classes:
|
||||||
try:
|
try:
|
||||||
elements += self.file.by_type(ifc_class)
|
elements += ifc_file.by_type(ifc_class)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return elements
|
return elements
|
||||||
@@ -88,7 +88,7 @@ def get_cobie_components(ifc_file):
|
|||||||
elements = []
|
elements = []
|
||||||
for ifc_class in cobie_component_classes:
|
for ifc_class in cobie_component_classes:
|
||||||
try:
|
try:
|
||||||
elements += self.file.by_type(ifc_class)
|
elements += ifc_file.by_type(ifc_class)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return elements
|
return elements
|
||||||
|
|||||||
Reference in New Issue
Block a user