Page 1 of 2 12 LastLast
Results 1 to 10 of 16
Like Tree7Likes

Thread: Rudimentary concepts (different length lists) still elude me.

  1. #1
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,292
    Current Local Time
    04:40 PM

    Rudimentary concepts (different length lists) still elude me.

    I don't give Dynamo nearly enough time these days (doesn't help not having my main rig setup at home) so I come begging on bended knees...

    This really can't be too difficult to achieve, but my Google-Fu returns so many threads (most far more complicated endeavours) that throw a host of nodes into consideration, but I can't parse them for which is "best" (read most expedient).

    Rudimentary concepts (different length lists) still elude me.-capture.png

    It should be patently obvious - but essentially, I'm pulling parameters from (many) sheets and wish to concatenate them with (singular) project information parameters. After switching the set-name node to longest-lacing I got closer than previous attempts, but it still only pulls the first sheet's values into the concatenation (so all sheets' <Sheet Reference> ends up the same)




    .dyn attached, but it's heavily dependant on custom SPs so probably no use to you.
    Attached Files Attached Files
    Last edited by snowyweston; March 13th, 2018 at 02:10 PM.

  2. #2
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    9,457
    Current Local Time
    10:40 AM
    I'm not at my computer right now, but I would try string.concat instead of the code block. Then you have a node to set to longest lacing.

    Sent from my Phablet. Please excuse typos... and bad ideas.

    Aaron Maller
    Director
    Parallax Team, Inc.

  3. #3
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,292
    Current Local Time
    04:40 PM
    Gotcha!

    Rudimentary concepts (different length lists) still elude me.-capture2.jpg
    LOL

    (backs away slowly from Dynamo)


  4. #4
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    9,457
    Current Local Time
    10:40 AM
    Without seeing your Model, I don't know if that's what you're expecting, or not? Are those all random values you typed in just for testing, or is it doing something weird?

    Iwould have thought the concat had to be on longest lacing...

    Sent from my Phablet. Please excuse typos... and bad ideas.

    Aaron Maller
    Director
    Parallax Team, Inc.

  5. #5
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,292
    Current Local Time
    04:40 PM
    I forgot to set the lacing but get the same result. I might not be using the node correctly. Perhaps the difficulty (in my explaining) is that the concatenation is not "values-from-sheets"+"values-from-project", but a jumble of, so more like: project-sheet-sheet-project-sheet

    The values are all correct as-pre-populated (this is all .rte work) - but are simply powering all the values from one (parameter) source together.

    Here's it all working in a (2017) concatenated schedule field (that includes additional parameters I don't want for this exercise) - doing what it needs to do (internally within a Revit schedule) but I want (read: need) the value-whole injected into an SP for other purposes.
    Rudimentary concepts (different length lists) still elude me.-concate.png

  6. #6
    Member
    Join Date
    March 21, 2013
    Location
    Phoenix, AZ
    Posts
    275
    Current Local Time
    08:40 AM
    My I-can't-lace-so-I-brute-force method: Ensure all lists that you are feeding the code block are the same length. That way, you can lace with the default shortest and all the lists match up item-for-item. In this case, I'd use List.OfRepeatedItems on the project information (use the Count of your sheet list).
    Attached Thumbnails Attached Thumbnails Rudimentary concepts (different length lists) still elude me.-nolace.png  
    cellophane and josephpeel like this.

  7. #7
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,292
    Current Local Time
    04:40 PM
    Cheers Chris - but er....

    *cries*

    It's past home time. I'm going to revisit this tomorrow.

  8. #8
    Member Bjorn_K's Avatar
    Join Date
    April 8, 2011
    Location
    Rotterdam, Netherlands
    Posts
    255
    Current Local Time
    05:40 PM
    Turns out there's no way to solve this with only lacing:
    Post by Racel Williams on Dynamo Forum

    So the way concat or join works is that once you want to feed it uneven lists atm, to get predicable behaviour the best way is to indeed even out all your lists. The Join or Concat action after that is really straightforward.

    This question has been bugging me as well for a while, thanks for the motivation to sort it out for myself and make an example.

    Rudimentary concepts (different length lists) still elude me.-join_concat_example.png
    Attached Files Attached Files
    snowyweston likes this.

  9. #9
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,292
    Current Local Time
    04:40 PM
    Quote Originally Posted by Bjorn_K View Post
    This question has been bugging me as well for a while, thanks for the motivation to sort it out for myself and make an example.
    And thank you for sharing!

    (some of the other solutions I've seen have been so very convoluted I've avoided them entirely as I really haven't the chops to troubleshoot future failures and daren't depend on a misunderstood workflow)

    Look forward to giving it a spin tomorrow!

  10. #10
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    9,457
    Current Local Time
    10:40 AM
    I've used list.cycle to feed in a repeating single item, for use with nodes that don't work with lacing. And there are a bunch.

    Sent from my Phablet. Please excuse typos... and bad ideas.

    Aaron Maller
    Director
    Parallax Team, Inc.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 0
    Last Post: December 19th, 2017, 12:15 PM
  2. Revit OpEd: Autodesk Subscription Concepts Changing
    By Revit OpEd in forum Blog Feeds
    Replies: 0
    Last Post: December 9th, 2014, 07:45 AM
  3. Limit Pipe length to practical standard length
    By amarkrish108 in forum MEP - General
    Replies: 3
    Last Post: January 8th, 2014, 02:27 AM
  4. Building Coder: Key Concepts of the Family Editor
    By Building Coder in forum Blog Feeds
    Replies: 0
    Last Post: June 26th, 2013, 04:45 PM
  5. Keynote Concepts
    By sfong in forum Architecture and General Revit Questions
    Replies: 4
    Last Post: December 14th, 2011, 10:39 AM

Posting Permissions

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