Elements in multiple bounding box

@jacob.small , @Einar_Raknes, @Thomas_Mahon , @jostein_olsen

I checked many of your posts and thought you guys could help me.

I have 3 scope boxes and too many pipes which I want to assign to bounding box and set parameter as per location of pipe.

for pipes which are in two scope boxes I want to assign parameter to those pipes according to centroid location of that pipe.

I hope my question made sense.

please help me out.

Hi @krupal.patelEER7M,

Looks like I built a solution around the longest length instead of the centroid.

See if this points you in the right direction: Pipe vs Scope Box - Longest.dyn (58.6 KB)


It worked out pretty well for this view:
image

Based on my experience, I would highly recommend you test your logic thoroughly before deploying it on a live project. I have seen the intersection nodes throw out some random intersections or no intersections because of the pipe orientation, slope, etc.

Good luck!

1 Like

I will definitely try it in the morning.

thanks,

1 Like

@krupal.patelEER7M You can do something with the centroid as below: Pipe vs Scope Box - Centroid.dyn (24.7 KB)


But you might miss out on the highlighted pipes:
image

1 Like


I don’t know what went wrong but I have 8 pipes and 3 scope boxes but boundingbox.contains shows only 3.

Does anyone have idea what went wrong?

thanks.

2 Likes

can you please explain me how does @L1, @L2… works.

I don’t understand at all.

This worked exactly how I wanted.

thank y’all.

1 Like

Check out “06-Process data effectively with list levels” in that playlist.

2 Likes