Let’s change the question a bit… how do you create a recursive/while loop that repeats a series of actions based not on a predefined number of steps but on the outcome of each preceding iteration?
The Sheet.ByNameNumberTitleBlockAndViews node will place multiple views on multiple sheets if you feed it a list of lists for each set of views/sheets. But if you don’t know yet how many views will/might fit on a sheet it’s less helpful.
If I take this set of grouped nodes, and place it end to end, wiring up the output of the left to the corresponding inputs on the right, the whole shebang will cycle through an ever diminishing view list, packing views onto new sheets until the list is empty or the graph runs itself out. Surely, I think, there must be a way to create a node that loops itself.
(the Next Number in String node is custom that I just published - CheapWine - it parses a sheet number as a string and increases the value by one)
The whole shebang working its way through a short list.