Hello everyone, I have a problem to find the index of item in the list, i tried all the methods that came to my mind, but I couldn’t find solution for it, i tried to get the maxiumum length which far from the door and i could get these values , what I have here its a list and the order of the flatten list doesn’t match the original ones ( by the way the main list of the rooms are having a start point from left-top point ), for this reason, I am not getting index values, is there any way to solve it, very appreciated for any help .
i tried it as well, every possibilities for level and lacing , but this what i got , the last two index are right but the rest is not , because the first item in the flatten list doesn’t belong to the list 0 and so one , so i am looking for a way to order the item down to the belong list up
Can you scroll both the List.Flatten and the Line.ByStartPEndP node box a little bit right, that to show the line coordinates?
Are there repeated, same lines in the Line.ByStartPEndP node’s list?
Do you need that the Line.ByStartPEndP node must keep the structure or can it be flatten?
hey Mate, yes i need to keep the structure of the Line.ByStart list , i also uploaded the dynamo file if its gonna easier for you to take a look around .
If all the parameters of the line is matching, it will be equal.
If it’s not that easy job and the lines just nearly the same, you could Round the parameters value, by getting the start,end points or X,Y,Z coordinates out of the line and match/sort by those values.
Or you could use the new Equals Node with Tolerance Input node