This commit is contained in:
Andrej730
2025-06-13 13:28:18 +05:00
parent 152c94a7d6
commit 176c5cc0fb
8 changed files with 63 additions and 28 deletions
@@ -41,9 +41,9 @@ def remove_representation(
styled_items = set()
presentation_layer_assignments_items: set[ifcopenshell.entity_instance] = set()
presentation_layer_assignments_reps: set[ifcopenshell.entity_instance] = set()
textures = set()
colours = set()
named_profiles = set()
textures: set[ifcopenshell.entity_instance] = set()
colours: set[ifcopenshell.entity_instance] = set()
named_profiles: set[ifcopenshell.entity_instance] = set()
for subelement in file.traverse(representation):
if subelement.is_a("IfcRepresentationItem"):
[styled_items.add(s) for s in subelement.StyledByItem or []]