Hello,
I am trying to repeat every item in the list below using the counts in the first list, is there a node to achieve that?
Hello,
I am trying to repeat every item in the list below using the counts in the first list, is there a node to achieve that?
List.OfRepeatedItem
or List.Cycle
with @L1
list levels.
Thank you Nick! I just tried the solution, it gives a result but, for me the results I would like to have is that every line in the second list shoud be repeated according to the count which is in the first list, here is an example I would like to have :
And what was the result? We need to see your graph to be able to tell you where to make adjustments. Based on the two lists you showed in the first image, both nodes I suggested will give you exactly what you seem to be asking for. Either the list levels were not setup correctly or I’m misunderstanding what you’re looking for.
Here is the graph!
I also linked the .dyn file, the purpose is to get the location of the room tag from a previous model and export them to Excel, I will use those locations to update the new tagged rooms into the up to date model (room tags were erased by mistake by someone in the team)
The reason why I would like to repeat every view name for every line is to have the same structure for list I will export to Excel, it will be easier for me to get the info et update the roomtags in the new model
We can’t really follow along if you don’t show the node preview bubbles, however, it looks like the issue with List.Cycle
is the list levels. You need both inputs to be @L1
to force each item to be repeated by its corresponding count, a 1-to-1 relationship.
Here is the results of the node List.Cycle :
As you can see, the same item is repeated, I would like to have, the first item repeated 4 times, the second item in the first list 6 times etc…
Again, we need to see your data to know what you’re working with. Otherwise we’re just blindly guessing. You will need to handle the list levels though.