Match data problem

Hi Everybody,

I have 12 panels; inside there are some spline that cross those panels
I separate the splines to segments inside each panels
I gave a name each segment inside each panel
Now, where the spline touch the vertical edge of the panel I want to write the name of the spline in to the horizontal bar.

The problem is: sometimes there is no spline that touch the bar, that’s make complicate to crossing the data tree
So I have a problem to match the correspondent text to the right location
I have tried many solution but still not find a way.
Any idea?

Thanks a lots

Spline in the panel Forum.gh (450.3 KB)