mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +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", ...)) != ...:
|
if (representation := getattr(element, "Representation", ...)) != ...:
|
||||||
return representation.HasShapeAspects
|
return representation.HasShapeAspects
|
||||||
|
|
||||||
|
if element.file.schema == "IFC2X3":
|
||||||
|
return []
|
||||||
|
|
||||||
# IfcTypeProduct
|
# IfcTypeProduct
|
||||||
shape_aspects = []
|
shape_aspects = []
|
||||||
for repersentation_map in element.RepresentationMaps:
|
for repersentation_map in element.RepresentationMaps:
|
||||||
|
|||||||
Reference in New Issue
Block a user