i am starting to work on a script and would like to have your ideas to find the best workflow in Dynamo.
I have hundreds of points and a lot of alignments lets say 10 alignements.
For each point i would like to get the nearest alignment, what would you think to be the better/fastest way to get it?
Great suggestion @zachri.jensen, I tried it out on Cogo points and that list sort is a great method just still tricky to figure it out. It’s also key to take the absolute value of the offsets. The script will throw warnings if the points aren’t in range of one of the alignments but should still process. I created an Mtext with the pertinent info so you can see the result. Hope this helps! D4C3D_Query_Pts_vs_Align-KM.dwg (925.3 KB) D4C3D_Query_Pts_vs_Align-editV2.dyn (89.5 KB)
I like your answers @zachri.jensen it always seems obvious reading it!
I don’t think often enough to the List.SortByKey node and it is really powerfull…
Oh , i knew i saw a video showing this workflow but could not remind where and when it was ! That is this class of @JowennLua thanks a lot for the link i will put it on my favorites now.