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

Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By snowyweston

Thread: using IF node to override rooms color in view

  1. #1
    Junior Member Aida Siala's Avatar
    Join Date
    October 25, 2017
    Posts
    27
    Current Local Time
    06:31 PM

    using IF node to override rooms color in view

    Hello,
    I want to override rooms color through IF condition :
    If the list contains "true"
    => the first room of the rooms list will be colored in green
    Apparently, I did not know how to use the IF node!
    Can some one help me, please.
    Attached Thumbnails Attached Thumbnails using IF node to override rooms color in view-forum.jpg  

  2. #2
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,382
    Current Local Time
    06:31 PM
    1. (noting I'm not all that Dynamo savvy) - rather than use the IF node, use the boolean mask node.

    2. (being more Revit-minded) I'd be inclined to suggest, for permanence, you inject the calculated True/False values into an SP so that you can exploit Revit's color schemes pre-setup in a dedicated (plan) view.
    GMcDowellJr likes this.

  3. #3
    Junior Member Aida Siala's Avatar
    Join Date
    October 25, 2017
    Posts
    27
    Current Local Time
    06:31 PM
    I tried with List.FilterByBoolMask but it does not work because I have two different lists each consists of one element.
    - List 1: contains the room ID that I am checking.
    - List 2: contains "True" or "False".

    I want to have the room ID when list 2 contains "True".

    Attached Thumbnails Attached Thumbnails using IF node to override rooms color in view-forum-3.jpg  

  4. #4
    Member uaifestival's Avatar
    Join Date
    May 28, 2014
    Location
    Tokyo
    Posts
    95
    Current Local Time
    02:31 AM
    it seems you are feeding the List.Filterbyboolmask with the wrong lace to me. That node should read the same amount of data (list) that you feed into the mask through previous nodes (such in your image list.Containsitem/== /.... and what is there before it cannot be read through yout picture. You can upload a larger picture by simply exporting the graph as image from Dynamo menu. File>exportworkspacesasimage.

  5. #5
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    06:31 PM
    Try using the ScopeIf node instead of the If - it should function more like you expect!

  6. #6
    Moderator
    Join Date
    February 2, 2011
    Location
    Montreal/Paris
    Posts
    830
    Current Local Time
    12:31 PM
    OUt of your == use a IndexOf and use True
    Then from the original list use ItemAtIndex

    This will give you a list of rooms that you can feed in the color

    But the FilterBYBooleanMask should work if you are only looking for True
    Last edited by DanielHurtubise; March 7th, 2018 at 06:34 AM.

  7. #7
    Junior Member Aida Siala's Avatar
    Join Date
    October 25, 2017
    Posts
    27
    Current Local Time
    06:31 PM

Similar Threads

  1. Curtain Wall System Panel Color Override
    By Warp Drive in forum Architecture and General Revit Questions
    Replies: 5
    Last Post: July 24th, 2017, 09:00 PM
  2. Replies: 0
    Last Post: June 1st, 2017, 07:15 AM
  3. Color Fill - Only Fills a few rooms not all: how I can fix to color all rooms?
    By revit_user in forum Architecture and General Revit Questions
    Replies: 5
    Last Post: November 30th, 2016, 07:01 PM
  4. Override Linked model wall color. Is it possible?
    By Hilife in forum Architecture and General Revit Questions
    Replies: 6
    Last Post: March 21st, 2013, 05:27 PM
  5. Override walls with solid color and pattern by filter
    By KimArndt in forum Architecture and General Revit Questions
    Replies: 8
    Last Post: September 16th, 2011, 01:26 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
  •