Announcement

Collapse
No announcement yet.

Dynamo Filter, then set parameters

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

    Dynamo Filter, then set parameters

    Hi All,
    Just looking for some help with 'proof of concept'. I have run into this situation 4 times in the last week and each time I have dead ended :banghead: because of what I am sure is a very simple problem.

    See attached, but the concept is:
    1. We need to get a parameter value from one category, but only some of them, so this means we need to filter our selection.
    2. We need to then take these filtered values and set another value in another category.
    3. Again, the second list is also filtered.
    4. I can filter both lists, but then getting the nodes to work to SET the parameter just never works for me.


    For example, I want to take the 'Mark' value of a filtered selection of curtain walls and set this value in the 'View Names' of a filtered selection of elevation views.
    If I am doing a simple get.parameter / set.parameter I have no problems, but once I introduce the nodes to filter, I get lost.

    Thanks in advance for any tips & guidance.
    Attached Files
    Last edited by damo3; December 13, 2016, 08:53 AM.
    7

    #2
    You're currently trying to populate your SetParameterByName's --VALUE-- as an Element, rather than a string (text). You'll need to run another GetParameterValueByName node to pull what ever data you want to push.

    However, the way your script is set up, you'll be pulling random wall data, simply filtered by your Mark values, and pushing that to a list of Views. There is a chance (Unless I'm mistaken) that you may be pushing and/or pulling data to elements that don't meet your needs. But try the first bit first and we can fix the second after

    Sol Amour

    Architectural Explorer, Digital warrior, Affectual adventurer and Curious Human Being
    Portfolio Website @ Cargo Collective

    Comment


      #3
      Ok, that first part "running another GetParameterValueByName was great.:thumbsup: I am gobsmacked I never thought of that. :crazy:

      So as you predicted, I think now we are up to the second part. I have successfully filtered and output the value I want. Now setting the value I am stuck again. I don't know what to connect to 'elements' of the SetParameterByName node. When I connected the elementofType from all the beginning, it did change view names of elevations, but not to the corresponding ones I filtered, which I assume is what you meant.


      p.s. ignore the nodes in red group. I do have a question about how I can insert a separator using OTB nodes. I couldn't find one from the OTB nodes, hence the archi-lab node. But this is more to satisfy my curiosity
      Attached Files
      7

      Comment


        #4
        Hello Damien,

        I've recreated your graph below and finalised what you wanted to do. Bear in mind though that this graph is a rather manual one in the sense that you're simply matching walls to views without actually matching them

        Attached Files

        Sol Amour

        Architectural Explorer, Digital warrior, Affectual adventurer and Curious Human Being
        Portfolio Website @ Cargo Collective

        Comment


          #5
          Thanks for this, unfortunately I have been so busy I haven't had a proper chance to look at it, but will over the break and post an update then.
          It is something I need to work out because just yesterday I needed it again. Your point about matching them up also makes me think I may need to pull ID numbers, maybe, we'll see.
          7

          Comment


            #6
            OK, finally got around to looking at this on a wet/humid day. Nicer inside under the a/c!
            So to complete this thread, I have posted below my final graph, which is just as you have constructed armoursol, just longer with watch nodes

            Yes, I do now understand what you mean by "this graph is a rather manual one in the sense that you're simply matching walls to views without actually matching them". When I checked the data, the filter worked, selected view names all renamed fine, but when I went around and checked walls, I realised my curtain wall mark numbers didn't match the view name that was looking at them, simply because Dynamo sorts the wall list by the element ID number, which is somewhat randomly assigned so I would have to work with element ID's... and another rabbit hole presents itself (which I won't be diving into).

            So, whilst for this example it isn't the perfect solution, the concept which is really what I was after, will prove valuable. Lots of lessons learnt, can't thank you enough for assisting me on this little project. much appreciated Armoursol. :thumbsup:



            p.s. In my graph I have used the 'String From List' node from the Archi-lab package. When I used the OTB String.Join node, the list value would display correctly in the watch node, but dynamo would only set the value of the last index item. No idea why, perhaps I misused it, but incase anyone else has the similar problem thought it was worth a mention.
            Attached Files
            7

            Comment


              #7
              You could also look into the Springs node 'Springs.Collector.ElementsInView in order to pair up the walls with the view (Caveat: May not work if you can't see the aforementioned walls within the bounding box of said view).

              Sol Amour

              Architectural Explorer, Digital warrior, Affectual adventurer and Curious Human Being
              Portfolio Website @ Cargo Collective

              Comment

              Related Topics

              Collapse

              • Filter list by sublist booleans
                This feels straight forward but I can't get it to work. The python node is extracting all of the parameters in a family. What I would like to do is simply...
                August 10, 2020, 01:24 PM
              • "disconnect" nodes
                is there a way to "unconnect" between 2 nodes based on certain condition?

                for instance, if selected elements are empty list,...
                January 20, 2016, 02:59 AM
              • Simple Dynamo Tutorial - Parameter Concatenation
                This quick tutorial should showcase how you can use Dynamo to pull data from parameter fields, use find/replace and get a concatenated version at the...
                July 3, 2015, 02:50 PM
              • Rtcna '16
                Trying to get a feel for the opinion on a topic I want to present at next year's RTCNA.

                I was wondering what everyone's most common questions...
                November 17, 2015, 01:55 PM
              • Help with IF statement?
                I was hoping someone could help me with a simple If/Then statement in Dynamo. I'm trying to figure this out for learning purposes and can't figure out...
                February 22, 2017, 12:10 AM
              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎