Align planes issue?

Im trying to align the planes with that line, but in some lines does not get align correctly, Also I tried to create rotate in x axis but some planes are flipped help !

align P.gh (28.7 KB)

I see many lines and many points.
What do you want to align? Please explain more, or make the example more simple with just 1-2 lines and dots.
regards, Eef

zoom in in this section in line 1 the planes are aligned in x axis with the direction in lines in the number 2 x axis is not aligned, is a trouble in several lines, I found a way to fix it but it is a little visual and if I try to replace with orient the issue occurs again. thanks for take a look


partial fix
align P1.gh (38.0 KB)

The points are not coincident with the lines.

Instead of trying to find the closest points for the points you provided, you could just take the lines and extend negatively like so:

align P not coincident.gh (31.6 KB)

I need the points location maybe I need evaluate for pairs well here coincident points if it helps
points.gh (4.3 KB)

How did you create the points?

its my initial reference lines for original structure the points not coincident was moved but I need create some rectangles in the same orientation of the line in the points given.

align P coincident separate list.gh (18.6 KB)

oh yeah!!! thanks can explain me please why longest list?

In this situation, it helps to unify the two data streams so you end up with 94 straightening guides instead of just 47.

One direction for each plane.

thanks again !

sorry but I dont want create a new topic for this, how can use format for labeling? i want my tree 0 be h0_0 to h0_5 second tree h1_0 to h1_5.
Like de second group using tree statics but adding a prefix could you help me please.

tags.gh (242.4 KB)

The lower approach is better.

tags.gh (244.3 KB)

Yeah !. Thank you so much!!