Iterate through the dynamo graph

Hi, as of now I’m creating only 1 new family type and then modifying its parameters and with all of those new values, changing a Wall and saving it as a “.rvt” file in a path in the computer. But now, I want to go a step further and create various family types and each one with its own parameters and save each one in a “.rvt” file. For this, so far I have this:

And the idea is that I can go through steps 1,2,3 and 4 and then start again like the blue arrow shows by moving to the next element of the list of each one of the lists near the yellow circles. But my problem is in the yellow circles, and that problem is that I don’t know how to move to the next element of the list (iterate through the list), I don’t know how to get the next index of the list.

I tried to iterate through the list using the while loop that its crossed in red but obviously it didn’t work. So, if anyone has any idea of how to solve this I would appreciate it a lot! Thanks!!!

Make your flow into a custom node and use elements as input :grin:

Hi Jonathan, I didn’t know that I could do that and that was very helpful for cleaning out a bit the workspace, so thanks a lot!
But still I haven’t manage to solve the issue, because I still don’t know how to input properly the elements into the Custom Node. So far I have this:
The “Create Object” node is the Custom Node, but I still don’t know how to pass it the list of lists, so if you have any other ideas I would very much appreciate them, thanks!

Hi, firstly it seems that you are creating three identical elements?

I would skip that step and enter the list output directly into your new node. secondly you should define what kind of input the node should work with. This is quite nicely explained in the dynamo primer on custom nodes. :slight_smile:

Yes, they are identical but just for demonstration purposes, in theory this will be data pulled out from an excel sheet so the values in the list of lists will be different for each one. And the input of the new node should be a list. And sorry but I don’t understand which step are you talking about, which step should I skip?

Solved the issue with the List.Map node!