Filter Loop

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:

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


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

yes, that works perfectly :),
thank you,

1 Like