Hi Dynamo Community,
Does anyone know how to get Largest 2 numbers from each list in a group?
I’m trying to make room rectangle boundaries, want to generate a room width and length no matter what shape the room is. Any thoughts?
Thank you!
Hi Dynamo Community,
Does anyone know how to get Largest 2 numbers from each list in a group?
I’m trying to make room rectangle boundaries, want to generate a room width and length no matter what shape the room is. Any thoughts?
Thank you!
What about List.Sort and then List.TakeItems?
That’s the method I’d use. In a code block it’d be something like this:
DSCore.List.TakeItems(DSCore.List.Sort(lstOfNumbers),-2);
Try this: DSCore.List.TakeItems(DSCore.List.Sort(lstOfNumbers)@L2<1>,-2);
hello, thanks, for providing the solution in the case of lists of lists.
Cordially
christian.stan