Filter Loop

hi,
I am trying to make filter loop for surface perimeter curves, but when i define function, it doesnt work like i imagined.
My idea was, that loop would filter every sublist and its elements, with curve max curve length in that sublist, but all i get is filter for 1 curve in every sublist. I have already tried static method, but it would be great if it is possible to make function, that is not limited by number of list elements.

I am attaching revit file and my dynamo definitions.
Thank you for your help.

link to .rvt and .dyn file: https://www.dropbox.com/sh/9wy7u561c14qrby/AAC7dnmUHQ_AI3S7puwM_vMsa?dl=0

I don’t think you need Imperative Blocks, Loops or Functions

List.FilterByBoolMask(lst,lst.X==lst.Y)["in"]

You’re tryimg to obtain something on these lines?..

yes, that works perfectly :),
thank you,

1 Like