I have to extract some convection coolers out of an ifc-file. They're saved as BildingElementProxys & are in relation with IfcRelContainedInSpatialStructure. My approach is to get all the IfcRelContainedInSpatialStructures & search with a for-loop through the RelatedObjects if there are objects which are also an IfcBuildingElementProxy. But I'm not which excact commands I got to use for the for-loop. Would be great if someone could help
That's what I've got so far:
import ifcopenshell
import ifcopenshell.util
from ifcopenshell.util.selector import Selector
import ifcopenshell.file
ifc = ifcopenshell.open(...)
selector = Selector()
buildingelementproxies = selector.parse(ifc, ".IfcBuildingElementProxy")
spaces = selector.parse(ifc, ".IfcSpace")
containedrelation = selector.parse(ifc, ".IfcRelContainedInSpatialStructure")
print (containedrelation)