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!
A blog dedicated to modeling and documenting complex geometry in the AEC industry using AUTODESK Products including DynamoBIM and DynamoBIM training.
Showing posts with label DynamoBIM. Show all posts
Showing posts with label DynamoBIM. Show all posts
Friday, March 6, 2015
Tuesday, March 3, 2015
Ranged Expressions using Design Script in DynamoBIM
Generating a number sequence in DynamoBIM using Design Script is easy. It is also easy to forget the "format"...
and then you start asking yourself...what goes first... the amount of steps or the start of the sequence...?
The following image summarizes (most) of what you need to know to generate a ranged expression in DynamoBIM.
and then you start asking yourself...what goes first... the amount of steps or the start of the sequence...?
The following image summarizes (most) of what you need to know to generate a ranged expression in DynamoBIM.
Use this image as a cheatsheet next time you want to generate a number sequence in DynamoBIM!
Subscribe to:
Posts (Atom)

