Representation items panel now shows styles and layers

This commit is contained in:
Dion Moult
2023-10-12 22:56:21 +11:00
parent c930050da6
commit dd70b09fb1
4 changed files with 33 additions and 4 deletions
@@ -577,7 +577,7 @@ def get_elements_by_layer(ifc_file, layer):
:rtype: list[ifcopenshell.entity_instance.entity_instance]
"""
results = set()
for item in layer.AssignedItems:
for item in layer.AssignedItems or []:
if item.is_a("IfcShapeRepresentation"):
results.update(get_elements_by_representation(ifc_file, item))
elif item.is_a("IfcRepresentationItem"):