From 8dde98f54351fa278568d7adfdf501a4d9827c99 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 29 Apr 2024 15:18:20 +0500 Subject: [PATCH] fix #4592 (after 0da3270) Before IFC4 Shape Aspects counldn't be part of IfcRepresentationMap --- src/ifcopenshell-python/ifcopenshell/util/element.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/util/element.py b/src/ifcopenshell-python/ifcopenshell/util/element.py index f8b8791787..e93a22907b 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/element.py +++ b/src/ifcopenshell-python/ifcopenshell/util/element.py @@ -512,6 +512,9 @@ def get_shape_aspects(element: ifcopenshell.entity_instance) -> list[ifcopenshel if (representation := getattr(element, "Representation", ...)) != ...: return representation.HasShapeAspects + if element.file.schema == "IFC2X3": + return [] + # IfcTypeProduct shape_aspects = [] for repersentation_map in element.RepresentationMaps: