I have 80 scope boxes which I’m using to locate equipment through my job. I can sort elements in dynamo with bounding box nodes but I don’t want to do 80 node group repetitions for each bounding box to see whether the elements is true/false.
Is there a way to code in python the below workflow:
- Using the element geometry to cycle through each bounding box geometry and determine what bounding box it lies in
- Output the index of the bounding box so I can retrieve the associated scope box
From what I can see looking at other code its going to have the geometry of the element and bounding box as inputs and using a for loop find what box it’s in then retrieve the index.
Let me know if I’m thinking in the right direction