Looping in dynamo to write to text file


#1

Loop all lists in A like B to get output C and write to text file in single column


#2

Space add.dyn (16.9 KB)


#3

List.GetItemAtIndex with lacing and levels set right, or List.Transpose followed by List.GetItemAtIndex.

You should go back and review the Dynamo Primer as many of your recent questions are covered there. Otherwise you are going to hit a lot of stumbling blocks like this.


#4


#5

it works when i repalce" i "with any number…


Python code for looping in an array
#6

looks like your’re overwriting “newdata” on each iteration, as your defining it each run. maybe consider appending it instead.


#7

tried it …still doesnt work…


#8

Anyway… No need for Python have you tried the following:

I can really advice you to make yourself familiar with the Dynamo Primer, it can be found here, it will solve 98% of your issues.
http://dynamoprimer.com/en/


#9

If a comment solves your problem then mark that as the solution and help keep the forum tidy. And leave a like here and there.