Before IFC4 Shape Aspects counldn't be part of IfcRepresentationMap
This commit is contained in:
Andrej730
2024-04-29 15:18:20 +05:00
parent 9962a0c905
commit 8dde98f543
@@ -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: