Hi, does anyone know how to loop a set of given elements and do operations on each element and then get corresponding results? For example, as the picture below shows, let say I want to find all beams contacted with each slab. My strategy is that, given a set of all slabs and a set of all beams, for each slab use the Geometry.DoesIntersect node to find the desirable beams. Now I can get the intersecting beam list for each slab by selecting each slab manually, as the dynamo script screenshot shows. I am wondering are there some ways that can loop the slab list and get different lists of beams intersected with each slab automatically? Thanks!
Find contacting elements for each element.dyn (22.4 KB)
The color part is just for visualization.
Test model: https://drive.google.com/file/d/1WVDYI7dYdW52k7sRIjDL0SfpH9KCakaN/view?usp=sharing