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

Results 1 to 8 of 8

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
    07:12 PM

    Using If node to Override rooms color in view

    Hello,
    I used IF node to override rooms color in view according to the condition:
    If the list is empty, override rooms color in red
    If the list is not empty, override rooms color in green.
    But, there is a mistake somewhere because the script override them in red in both cases
    Attached Thumbnails Attached Thumbnails Using If node to Override rooms color in view-cp.jpg  

  2. #2
    Member Bjorn_K's Avatar
    Join Date
    April 8, 2011
    Location
    Rotterdam, Netherlands
    Posts
    320
    Current Local Time
    08:12 PM
    You want to override the Rooms in a color, the color depends on the condition. Then have the IF node only confirm the color for you, and after the IF node override the Rooms.

    The way you have it set up now, Dynamo is overriding the Rooms before your data arrives at your if node.

    It can work like this:
    Using If node to Override rooms color in view-if_color.png

  3. #3
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,382
    Current Local Time
    07:12 PM
    One thread's enough Aida!

    But I'll let you off this time as I can't presently remember how to merge...
    https://www.revitforum.org/dynamo-bi...olor-view.html

  4. #4
    Junior Member Aida Siala's Avatar
    Join Date
    October 25, 2017
    Posts
    27
    Current Local Time
    07:12 PM
    Yes, that is what I need Bjorn!
    Thank you

  5. #5
    Junior Member Aida Siala's Avatar
    Join Date
    October 25, 2017
    Posts
    27
    Current Local Time
    07:12 PM
    Thanks Snowyweston

  6. #6
    Junior Member Aida Siala's Avatar
    Join Date
    October 25, 2017
    Posts
    27
    Current Local Time
    07:12 PM
    Hi Bjorn,
    the node Element Override color in view does not always works
    Attached Thumbnails Attached Thumbnails Using If node to Override rooms color in view-2018-03-14.png  

  7. #7
    Forum Addict josephpeel's Avatar
    Join Date
    May 3, 2012
    Posts
    1,401
    Current Local Time
    08:12 PM
    Your IF is grey, which means not complete. Connect something to False, even if it is just 'null;'

  8. #8
    Junior Member Aida Siala's Avatar
    Join Date
    October 25, 2017
    Posts
    27
    Current Local Time
    07:12 PM
    I get it,
    Thanks josephpeel!

Similar Threads

  1. using IF node to override rooms color in view
    By Aida Siala in forum Dynamo BIM
    Replies: 6
    Last Post: March 8th, 2018, 01:47 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
  •