Longest line from sublist

It must be simple, but how,

I need to get the longest line of every sub list ( there will be 1000 and more sub lists):

Element Parameter “Länge” is the Lenght of the Curve

Something like this?

That gives the Maximum Value, but I need to filter the longest Curves

Maybe a stupid question, but wouldn’t the longest “length” of a curve be the longest curve? (Thus using List.MaximumItem)

1 Like

You can try something like this as well.

1 Like

Yes, but whitch line of the first sublist is the longest one ( the index)? And whitch line of the second list is the longest one in the second sublist? ( the index?)

With @Jonathan.Olesen method use IndexOf

http://dictionary.dynamobim.com/#/BuiltIn/Action/IndexOf

1 Like

As Steven says:

1 Like

Thank you Jonathan and Steven, it works: