Donate Now Goal amount for this year: 3000 USD, Received: 1207 USD (40%)

Results 1 to 9 of 9
Like Tree7Likes
  • 1 Post By irneb
  • 3 Post By irneb
  • 2 Post By irneb
  • 1 Post By cellophane

Thread: Isolate by Type Parameter

  1. #1
    Member ryntau's Avatar
    Join Date
    October 11, 2012
    Location
    St. Louis
    Posts
    401
    Current Local Time
    06:06 AM

    Isolate by Type Parameter

    I'm looking to isolate elements in a 3d based on their type parameter, but I can't seem to even get access to the Type parameter data using the Element.GetParameterValueByName node, am i missing something easy? (and yes they do all have Type Marks set)
    Attached Thumbnails Attached Thumbnails Isolate by Type Parameter-isolatebytype.png  

  2. #2
    Member ryntau's Avatar
    Join Date
    October 11, 2012
    Location
    St. Louis
    Posts
    401
    Current Local Time
    06:06 AM
    The Get Type Parameter in the Archilab-Grimshaw package seemed to do the trick
    Attached Thumbnails Attached Thumbnails Isolate by Type Parameter-isolatebytype2.png  

  3. #3
    Member irneb's Avatar
    Join Date
    April 25, 2013
    Location
    Jo'burg SA
    Posts
    350
    Current Local Time
    03:06 PM
    The issue is that a type parameter isn't stored inside the element, rather inside the element's type. It "does" make sense if you think about it.

    So to get to the type parameter you first need to get to the type:
    Attached Thumbnails Attached Thumbnails Isolate by Type Parameter-params.png  
    amoursol likes this.

  4. #4
    Member irneb's Avatar
    Join Date
    April 25, 2013
    Location
    Jo'burg SA
    Posts
    350
    Current Local Time
    03:06 PM
    As example, you could make your own custom node to handle both cases as one:

    Then it's a single node in your script, no matter if you're looking for an instance parameter or a type parameter.
    Attached Thumbnails Attached Thumbnails Isolate by Type Parameter-getanyparametervaluebyname.png   Isolate by Type Parameter-getanyparametervaluebyname-test.png  

  5. #5
    Member ryntau's Avatar
    Join Date
    October 11, 2012
    Location
    St. Louis
    Posts
    401
    Current Local Time
    06:06 AM
    That makes perfect sense, thank you

  6. #6
    Moderator cellophane's Avatar
    Join Date
    August 9, 2011
    Location
    Louisville, KY
    Posts
    6,104
    Current Local Time
    09:06 AM
    Quote Originally Posted by irneb View Post
    As example, you could make your own custom node to handle both cases as one:
    ...
    Then it's a single node in your script, no matter if you're looking for an instance parameter or a type parameter.
    dumb question - what's the difference between the custom node you created here and similar nodes from Rhythm or similar? I can see the output is a little different, but otherwise is there a big difference?
    Attached Thumbnails Attached Thumbnails Isolate by Type Parameter-getparameter.png  

  7. #7
    Member irneb's Avatar
    Join Date
    April 25, 2013
    Location
    Jo'burg SA
    Posts
    350
    Current Local Time
    03:06 PM
    Quote Originally Posted by cellophane View Post
    dumb question - what's the difference between the custom node you created here and similar nodes from Rhythm or similar? I can see the output is a little different, but otherwise is there a big difference?
    Nothing much, though I think those just do the same thing through Python (or perhaps C#) instead of Dyn nodes.

    My reason for posting it is just to show how it could be done "simply" if you didn't use such 3rd party libraries.
    Last edited by irneb; January 19th, 2018 at 05:49 AM.
    amoursol and cellophane like this.

  8. #8
    Member irneb's Avatar
    Join Date
    April 25, 2013
    Location
    Jo'burg SA
    Posts
    350
    Current Local Time
    03:06 PM
    Quote Originally Posted by cellophane View Post
    I can see the output is a little different
    That means there is some re-arrangement going on in that Rythim node. Looking at its source: https://github.com/sixtysecondrevit/RhythmForDynamo
    Seems to be written in C#. And it returns a Dictionary containing the name and value of the parameter. Not just the value itself. So the thing seeming to be multiple sub-lists is actually a dictionary (key/value lookup store) for each item in the inputs.

    Mine is just returning the param found and its value.

  9. #9
    Moderator cellophane's Avatar
    Join Date
    August 9, 2011
    Location
    Louisville, KY
    Posts
    6,104
    Current Local Time
    09:06 AM
    Quote Originally Posted by irneb View Post
    Nothing much, though I think those just do the same thing through Python (or perhaps C#) instead of Dyn nodes.

    My reason for posting it is just to show how it could be done "simply" if you didn't use such 3rd party libraries.
    Thanks. Just curious on what the difference was. I also created my first custom node by recreating that
    amoursol likes this.

Similar Threads

  1. Replies: 0
    Last Post: March 11th, 2016, 01:15 AM
  2. Type's parameter cannot recursively point to the type itself?
    By jeeenyuss in forum Architecture - Family Creation
    Replies: 4
    Last Post: March 27th, 2015, 06:02 PM
  3. Replies: 0
    Last Post: August 26th, 2013, 07:45 AM
  4. Including instance parameter in type parameter formula
    By sabari2504 in forum Architecture - Family Creation
    Replies: 2
    Last Post: August 12th, 2013, 02:54 PM
  5. select by parameter? curtain wall panels' materials by parameter, by type or family?
    By oompa_l in forum Architecture and General Revit Questions
    Replies: 1
    Last Post: January 24th, 2013, 03:20 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
  •