Announcement

Collapse
No announcement yet.

Trying to iterate through a list of strings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trying to iterate through a list of strings

    Hi Team,
    Maybe one you gurus can help me out. I'm trying to step through a list of strings assigning each one to an instance parameter of a different notation. The idea was to read a list in from excel and then make an annotation for each entry. The watch in the lower left is that list I'm trying to step through. I guess I'm trying to wrap my head around doing without a ForEach loop function. Thanks folks!

    Attached Files

    #2
    Dynamo is more list-based than object-based, so you have to alter your style a bit. "Lacing" is what controls how the lists are handled / iterated over; if your lists are the same length it will iterate through the same index of each list. Get your list of elements to match your list of IDs and feed that to the SetParameterByName node.
    Chris Ellersick

    Comment


      #3
      Thank you for explaining that. I was trying to wrap my head around looping in dynamo and after thinking about your post it just clicked and I went from using about seventy nodes to accomplish what I was trying to do to about seven.

      Thanks again!

      Comment

      Related Topics

      Collapse

      Working...
      X