Looping a complex algorithm

So… I found a solution. Don’t know if it’s the most elegant one but for my case it’s perfect.
It’s a true loop solution, doesn’t use any python script and it’s all done with ootb dynamo nodes.

Basically I made a custom node for the generation part. inside are: geometry generation, BIM elements generation, export and archive, erase all BIM elements.
Inside the custom node the sequence of theese actions are managed by passthrough nodes (but you can do it in other ways)

Then in the main algorithm I read data from excel spreadsheet, pass one row a time to the custom node and loop the whole process with Loop While node.
I also have a switch to tell if it must loop the full list or just a part.

New folders for each project case are created on the go by the algorithm according to the project IDs i collect from the spreadsheet.
2020.11.11_Loop issue_solved3

Now time to implement it to the more complex algorithm and DB.

Hope this could be helpfull to someone!

9 Likes