Hi, All. I am new to Dynamo. I am trying to sort this list in an very specific way. As you can see this list comprised letter with number. I want to sort list as R1, Y1, B1, R2, Y2, B2, R3, Y3, B3… It will be very grateful if any one having the solution.
October 27, 2017, 7:32am
@pilayaa This should work as long as each item has only two characters
October 27, 2017, 10:41am
@Yna_Db and @Vikram_Subbaiah for your quick and valuable response.
October 27, 2017, 10:55am
I am new to Dynamo
Please take also the time to read the forum guidelines, as an introduction to the community, you will find there very good advice that will be useful to your future requests
One of the main goals of the Dynamo community is to help others. One way to do that is by answering your questions. But to get the right answer, you’ll first have to ask your question in the right way. Although people are generally very helpful, there are things you can do to improve your chances of getting good and quick answers. Below you will find some suggestions on how to achieve that. Do not think of these suggestions as rules and especially do not take them as a guarantee of getting an an…
I assume you want your list to start with R …
You are right. I want the list to start with R. So I just modify the key order from 1,2,0 to 2,1,0. Now I got the list as my requirement. Thanks for your suggestion.
November 2, 2017, 10:35am
In addition to this I have a list and its relevant Element list. I want it in a specific order. In Image-1 you can see the circuit number and its Element list. In Image-2 Circuit number in the specific order. I want the Element list based on the circuit list. Hope you guys have the solution.
November 2, 2017, 11:13am
You can try the dictionary method for that:
@Yna_Db stated you can use dictionaries for this. Don’t have to use custom nodes either. Designscript have that capabilities “in-house”.
@pilayaa Filter, Group and Sort the corresponding elements as you go along
Not sure if I’ve got this right, but hope I’ve managed to convey the idea…
20171102-1.dyn (15.5 KB)
November 7, 2017, 8:27am
@Vikram_Subbaiah, This is what I want.
Thanks @Yna_Db for your suggestion. You guys are great.
Currently I am working on the customized Electrical DB Schedule. This is the part of it.
November 7, 2017, 9:14am
@Yna_Db thanks for the solution.