Donate Now Goal amount for this year: 2500 USD, Received: 1627 USD (65%)

Results 1 to 3 of 3
Like Tree4Likes
  • 1 Post By cellersick
  • 3 Post By Aaron_J_Clark

Thread: Trying to iterate through a list of strings

  1. #1
    New Member
    Join Date
    August 24, 2018
    Posts
    3
    Current Local Time
    02:51 PM

    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 Thumbnails Attached Thumbnails Trying to iterate through a list of strings-9-11-2018-8-51-16-am.png  

  2. #2
    Member
    Join Date
    March 21, 2013
    Location
    Phoenix, AZ
    Posts
    275
    Current Local Time
    02:51 PM
    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.
    Joe_Charpentier likes this.

  3. #3
    New Member
    Join Date
    August 24, 2018
    Posts
    3
    Current Local Time
    02:51 PM
    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!

Similar Threads

  1. Replies: 0
    Last Post: March 24th, 2017, 06:16 AM
  2. Replies: 0
    Last Post: March 24th, 2017, 06:16 AM
  3. Text in Dimension Strings
    By sblosse in forum Architecture and General Revit Questions
    Replies: 1
    Last Post: October 2nd, 2015, 12:00 AM
  4. Building Coder: Change Type, Iterate Elements, Create Family
    By Building Coder in forum Blog Feeds
    Replies: 0
    Last Post: September 25th, 2015, 03:15 PM
  5. Nesting parameter values in text strings
    By cellophane in forum Architecture - Family Creation
    Replies: 6
    Last Post: May 30th, 2012, 03:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •