Please help me to get the list of Elements that are sorted by Z value and use the python language in dynamo.
I have used “List.SortByKey” in the python script but I can not get the list of Element.
List.SortByKey node in dynamo will be extract 2 sorted list and sortd keys, but I just would like to get the sorted list. In Python script I extract a list of them, however I can not get list of “sorted list” although using “List.GetItemAtIndex”
- The list of Elements by using dynamo node.
- The list of list when I use “List.SortBykey”
And I do not understand the List.Map node in Dynamo, please help me to know it in detail.
This is code I have use:
if IN == True:
cols = uidoc.Selection.PickObjects(Selection.ObjectType.Element)
for i in cols:
k = doc.GetElement(i)
for i in Framing:
from DSCore import *
z = List.SortByKey(Framing,z)
Thank you for your help.