List.GetItemAtIndex - Cycle?

Hi,

I have a list.get item at index node, and would like this to cycle through a range, is this possible?

An illustration would be welcome

2 Likes

apologies, trying to think of a way to make it clear - here is an image.

Within the list are 141 lists, of each i want to write to Revit - thus getting the item at each index and writing. I was wondering if rather than dragging the integer value, there is a way it will “cycle” through each list.

image

Writting 0…141; in a code bloc (as the index input) should do that.
Edit: I can’t write it correctly in the post, I don’t know why, but there are only 2 points between the numbers, see other examples here:
http://dynamoprimer.com/en/07_Code-Block/7-3_shorthand.html

1 Like

If you need all elements in a list, there is no need to cycle through each element. Dynamo does so, by default.
I suspect your perception of the way lists work is faulty. You most likely don’t need GetItemAtIndex
Kindly share a complete graph and try to explain what you’re trying to acheive.

1 Like

thanks, will give it ago - I guess it is the way my graph continues after at each list item is a new family being created.

1 Like