Hi Shahid,
Appreciate so much for your help. Your model is working well when whole plan only existing one 3d Polyline and one point(manhole).
However, there is another story in my case. when I have many points and many 3Dpolylines, all of points under the same layers pick up the same lowest value to themselves.
For example, point A and Point B under the same layer, point C and point D are under the another same layer. And base on your scripts I got 4 values, “1”,“2”,“3”,“4”, as I have 4 pipes connect to four manholes, but the result is the pointA and B pick up value “1” , point C and D pick up value “2”. The correct result supposed be Point A picks up value “1”, Point B picks up value “2”, Point C picks up value “3”, point D picks up value “4” because values “1”, “2”, “3”, “4” are the lowest value for Point A,B,C,D.
I need to take these lowest values to fill up a table automatically. Therefore, it requires the values must to meet the relevant manholes.
Thanks again.