From 59f156bae343fe6090c559b4880a3a5f90013d04 Mon Sep 17 00:00:00 2001 From: Gorgious Date: Thu, 19 Aug 2021 14:04:01 +0200 Subject: [PATCH] IFC Cobie : Fix Elements not being assigned in selector --- src/ifcopenshell-python/ifcopenshell/util/selector.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/selector.py b/src/ifcopenshell-python/ifcopenshell/util/selector.py index bfdc50c1d0..b5a4034a55 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/selector.py +++ b/src/ifcopenshell-python/ifcopenshell/util/selector.py @@ -124,11 +124,11 @@ class Selector: def get_class_selector(self, class_selector): if class_selector.children[0] == "COBie": - ifcopenshell.util.fm.get_cobie_components(self.file) + elements = ifcopenshell.util.fm.get_cobie_components(self.file) elif class_selector.children[0] == "COBieType": - ifcopenshell.util.fm.get_cobie_types(self.file) + elements = ifcopenshell.util.fm.get_cobie_types(self.file) elif class_selector.children[0] == "FMHEM": - ifcopenshell.util.fm.get_fmhem_types(self.file) + elements = ifcopenshell.util.fm.get_fmhem_types(self.file) else: elements = self.file.by_type(class_selector.children[0]) if len(class_selector.children) > 1 and class_selector.children[1].data == "filter":