Help creating a loop of Many Functions

I’m creating a Voltage Drop graph, and I need to loop these final groups of nodes increasing the index # for grabbing from assorted Wire Size associated lists from earlier in the graph until the results end up below 3%. To further complicate this, different circuits will need to loop different number of times.
The outputs I want are the combined list of circuit VDrop, and a combined list of final index #s for grabing from the reference Wire Size lists.

This shows the loop I want.
I’ve been reading about the LoopWhile node, but I don’t understand how to use it quite yet.

Did you also see this post with the Function.Compose node?

1 Like

Instead of iterating over different wire sizes until you find the one that works, couldn’t you just solve for the necessary size at 3% and check that against a list of wire sizes? Then you just have to round up to the nearest wire size.

1 Like

@Yna_Db
Thanks for linking that posts, it explained explained the LoopWhile node better than any post I found with my searches.
What I needed to do was take the nodes I wanted to loop and make a custom family with them, and also to keep the looping data as a lists of lists that can be connected to the ‘Init’ input on the LoopWhile node.

@Nick_Boyts
I plan to do it that way as well :sweat_smile: This was more of a challenge to myself in order to learn the LoopWhile node.

Fair enough. I tend to avoid loops with Dynamo nodes. Always ends up being easier with python.