List sort by key


#1

Hi all and thanks in advance.
i wanted to sort surfaces based on their areas.
my final values are not correct.Where is my mistake?


Ordering list of object coordinates by elevation and attach a string for respective elevation
#2

u want to sort them by ascending order of their area?


#3

yes. so i can take the max value .


#4

try list.sort node instead of SortIndexByValue node


#5


#7

Maybe You Like:


#8

i dont get it…


#9

i also trying different levels if something is wrong but i dont get where is the mistake


#10

Can you share your files?


#11

go this way


#12

use SORT&GROUP BY KEY INSTEAD OF List.SortByKey


#13

which package is that?


#14

DanEDU Dynamo


#15

If all you want is to get the largest area why no just use “List.MaximumItem”?


#16

to use list.max item i need to convert surface information to area . after the maxitem out put will be a number but i need surface to maniplate later on.


#17

But when you have the maximum area using List.MaximumItem, you can use a simple boolmask to find the surface with that one/multiple with the biggest surfacearea?


#18

i didnt know that also dont know how to


#19

I do not have a surface to show you on, so imagine my lines is your surfaces, and my length is your area:


Using list levels, you can go into the groups of surfaces, if that is what you wish.


#20

exactly the one!


#21

Please notice! The previously released DanEDU Dynamo package is now released as the Orchid package!