By using ifchopenshell I can easily traverse all storeys using this code
for ifc_storey in ifc_file.by_type("IfcBuildingStorey"):
print(str(ifc_storey.Name))
However, for each storey I would like to find all the Ifc elements of type IfcSpace, that belongs to it.
How can I query this? Thank you.
I finally solved it using this code: