Add notes on Tekla accommodations (7c3870595)

This commit is contained in:
Andrej730
2025-05-13 13:31:09 +05:00
parent 6a91bbb720
commit 3d225beafd
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -428,6 +428,7 @@ class IfcImporter:
rep = representation
while True:
# Tekla 2023 has missing items, though it's invalid IFC.
if rep.Items and len(rep.Items) == 1 and rep.Items[0].is_a("IfcMappedItem"):
rep_matrix = ifcopenshell.util.placement.get_mappeditem_transformation(rep.Items[0])
if not np.allclose(rep_matrix, np.eye(4)):
@@ -294,6 +294,7 @@ def resolve_representation(representation: ifcopenshell.entity_instance) -> ifco
:param representation: IfcRepresentation
:return: Representation resolved from mappings
"""
# Tekla 2023 has missing items and mapped representation, though it's invalid IFC.
if (
len(representation.Items or []) == 1
and representation.Items[0].is_a("IfcMappedItem")