From f14d349be04129d9f5fb4bb3f99b98a2d4b4f7bf Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 20 Jul 2021 09:50:46 +1000 Subject: [PATCH] Fix bug where psets didn't show up for non element types like 2X3 door styles. --- src/ifcopenshell-python/ifcopenshell/api/pset/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset/data.py b/src/ifcopenshell-python/ifcopenshell/api/pset/data.py index 0ea2bc6f21..0800938da4 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset/data.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset/data.py @@ -22,7 +22,7 @@ class Data: return product = file.by_id(product_id) cls.products[product_id] = {"psets": set(), "qtos": set()} - if product.is_a("IfcElementType"): + if product.is_a("IfcTypeObject"): cls.add_type_product_psets(product, product_id) elif product.is_a("IfcMaterialDefinition"): cls.add_material_psets(product, product_id)