Split list into longest polyline and the rest

Hi All,

How would you seperate list into where one list has the longest polyline and then other list has everything aside the longest polyline? Or nothing if it is just the longest polyline in the original list.Thank you for your help in advance!

image

Can you try that?

liste, maxi=IN
z=[]
for element in maxi:
	z.append(liste[maxi.index(element)].index(element))
	
	
OUT=z

for forum_length.dyn (9.8 KB)

I have adapted the solution to use dynamo components with out the python script. Thank you for your help so much!
image

1 Like