Have you ever wanted to get an item from a list or nested list and were always using the “GetItemAtIndex” node in DynamoBIM and felt like it could be much easier?

Well it could be.

If you want any item from any nested list…even if the item is in a list that is nested 6 lists deep…it only takes 1 node.
Basically just use the following format in a code block
x[itematindexyouwanttoextract][nestedlistitem][nestedlistitemwithinnestedlistitem][etc…]

x is an input list or nested list the rest are indexes placed withing closed box brackets[]

The image will summarize the process.

I hope this helps and saves you time when you want to extract an item from a list or nested list. Good luck and happy list item getting!

3 thoughts on “Ever wanted to extract an item from a list in DynamoBIM? Don’t use the “GetItemAtIndex” Node Use Design Script!

  • Anonymous

    1..0; gets the numbers in series too.

  • Anonymous

    how can you get multiple items from a list of list using one code? for example ive got a list of 36 items each with a list of 3 items say A, B and C.
    i want to get all the B items from each of the 36 items and list them, is this possible and if so how would i do it????

  • Anonymous

    how can you get multiple items from a list of list using one code? for example ive got a list of 36 items each with a list of 3 items say A, B and C.
    i want to get all the B items from each of the 36 items and list them, is this possible and if so how would i do it????

Comments are closed.