I think you have to have a look at what you’re actually trying to change
You want the color of the “rooms” to change… but you’re attempting to do this on the Room elements… but the information about the room color is not on there (you need to be able to do it in Revit to do it in Dynamo)…
The room color is controlled in the Color scheme…
Which is a part of the graphics on the Floor Plan…
It is here you really want to go…
Have a look at:
I’m trying to create a script to color rooms based on program area. And I noticed when it works, using the OverrideColorInView OOTB node, it changes the colors of the rooms globally. Oddly it seems to affect the color fill and interior fill colors. This seems to break the Color Schemes. Or rather, the Color schemes are applied to the view as the legend indicates, but the Rooms stay overridden with the Dynamo applied color. And I can’t seem to clear the color override.
Hi,
My plan is to make a neutral color scheme for all rooms, setting all rooms to a color, solid fill, white.
This would not change my plan view, but…
Then set a few filters and set the override by room parameters, changing the color fill of the rooms.
The goal here is to have a mix of two or three different color schemes in one view, you cannot do this in Revit, right?.
How would i go about setting the color in the color scheme to begin with using Dynamo?
And… would this work?
Any advice…
I guess you could use some Element.GetParameterValueByName nodes (to read paramaters A and B) combined with some AND and NOT nodes to compile a new parameter (with Element.SetParameterByName) (e.g. strings called “red”, “green”…) to be used in the color scheme (in which you manually assign the correct color to the corresponding string).
EDIT:
I thought that using revit calculated parameters was quicker so I gave it a try but then I remembered that you cannot use those in Dynamo or in the color…
1 Like