mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Before IFC4 Shape Aspects counldn't be part of IfcRepresentationMap
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user