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

Results 1 to 4 of 4
Like Tree2Likes
  • 2 Post By Yna_Db

Thread: use a list extract as individual input for a calculation?

  1. #1
    New Member
    Join Date
    August 17, 2017
    Posts
    2
    Current Local Time
    10:37 AM

    use a list extract as individual input for a calculation?

    Hi Guys,

    As I'm a newbie to dynamo I came across something I can't figure out.
    I checked out multiple forums, blogs, vlogs and other internet sources for an answer, but nothing unfortunately.

    My 'problem' is that I would like to use each of the 4 results from the box 'element.GetparameterValuebyName' as an individual input for the next part of my calculation.
    Now I'm using a code block, and thus have to enter each result manually and run it's calculation.
    But it would be awesome if it can be done automaticly by linking the "list" to the "searchFor"-box.

    Hopefully you guys can give me some pointers if it is possible and if yes, how.

    Greets,
    Erwin
    Attached Thumbnails Attached Thumbnails use a list extract as individual input for a calculation?-repeating-formula.png  

  2. #2
    Member
    Join Date
    March 21, 2013
    Location
    Phoenix, AZ
    Posts
    275
    Current Local Time
    03:37 AM
    I'm not sure I understand what your end goal, but you could try searching for "list lacing" or "replication guides". That's how to control how the nodes interact with multiple and mismatched inputs. Here's a link from the primer:
    What's a List | The Dynamo Primer

    Looking at your graph, if you are only changing the code block to the values retrieved by Element.GetParameterValueByName, the net effect is that you are still iterating through those same results (just manually). Which sounds like it might be a list management issue.

  3. #3
    New Member
    Join Date
    August 17, 2017
    Posts
    2
    Current Local Time
    10:37 AM
    Hi Chris, thanks for your reply. I will search for the tips you gave me.

    My goal is that I want to use each of the single numbers (it is basically an area instance parameter in revit) as an input to start a calculation.
    I want the calculation-result to set as an instance parameter into other area;'s (which contains the same number in it's own number) into Revit.
    Basically should the result in Revit be to add the sum of multiple area's into another area. All based upon the reccurence of a number.
    I hope this explanation makes it more clear to what my goal is?!

    Hereby the complete schedule as I have build so far:
    (ps1. sorry for some of the dutch words in it, I don;t know how exactly it is named in english)
    (ps2. the orange groups in the schedule have no function other than that I wanted to check what the number of the resulting object was)
    Attached Thumbnails Attached Thumbnails use a list extract as individual input for a calculation?-capture.png  

  4. #4
    Member
    Join Date
    September 19, 2015
    Posts
    163
    Current Local Time
    11:37 AM
    I took a look at this and here is what I understood from your workflow (correct me if I missed something):

    So what I did is reproducing it in a simple way to show how it could work. I used rooms in place of your "GBO Areas" and walls in place of "VG Areas", aiming to set the sum of walls areas to a room parameter, with lists sorted by the Comments parameter value which stands for your "Number" parameter. Seems complicated but finally not so much. Here is the result:

    What is essential is to maintain consistency between lists, so that the right parameter value can be set to the right element.
    Attached Thumbnails Attached Thumbnails use a list extract as individual input for a calculation?-set-parameter-values-sorted-list-workflow.jpg   use a list extract as individual input for a calculation?-set-parameter-values-sorted-list.jpg  
    amoursol and Everh77 like this.

Similar Threads

  1. Input as List
    By DaveP in forum Dynamo BIM
    Replies: 11
    Last Post: March 1st, 2016, 05:08 PM
  2. Converting Input from to accept a list
    By ScubaMan in forum Dynamo BIM
    Replies: 3
    Last Post: January 4th, 2016, 04:01 PM
  3. Replies: 2
    Last Post: August 31st, 2015, 12:18 PM
  4. Replies: 0
    Last Post: March 7th, 2015, 05:45 AM
  5. Replies: 0
    Last Post: March 18th, 2014, 02:45 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
  •