# Matching a Color by string, to a Color in Dynamo that Overrides Graphics

**URL:** <https://forum.dynamobim.com/t/matching-a-color-by-string-to-a-color-in-dynamo-that-overrides-graphics/2356>\
**Category:** Packages\
**Created:** [October 11, 2015, 6:13pm UTC](https://forum.dynamobim.com/t/matching-a-color-by-string-to-a-color-in-dynamo-that-overrides-graphics/2356 "2015-10-11T18:13:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Nickel](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@Brian\_Nickel](https://forum.dynamobim.com/u/Brian_Nickel)\
**Post date:** [October 11, 2015, 6:13pm UTC](https://forum.dynamobim.com/t/matching-a-color-by-string-to-a-color-in-dynamo-that-overrides-graphics/2356/1 "2015-10-11T18:13:42Z")

</div>

I have a list that is of all the colors I’ve assigned to each object from excel. I want to be able to tie the list to another list that has the specific colors assigned to each value to override the graphics in Revit of the space blocks. How could I accomplish this by overriding the original values from excel with the values from the new color list I’ve created in Dynamo? Thank you for your help! ![Example](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/3/3dfed4e35185a87e9fd2dd15e6c71e861fad8f34.png)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 11, 2015, 10:33pm UTC](https://forum.dynamobim.com/t/matching-a-color-by-string-to-a-color-in-dynamo-that-overrides-graphics/2356/2 "2015-10-11T22:33:26Z")

</div>

Hi Brian,

If your looking to override colors for your spaces use “Element.OverrideColorinView” node. I am not sure if this is what your looking for.

![Untitled](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/6/68f4ad22268dfbe43421b26c5076f848bfbb9132.png)

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [October 12, 2015, 8:53am UTC](https://forum.dynamobim.com/t/matching-a-color-by-string-to-a-color-in-dynamo-that-overrides-graphics/2356/3 "2015-10-12T08:53:51Z")

</div>

Kulkul,

&nbsp;

That works perfect for the OP’s override question, nice job!

&nbsp;

But for the replacement of the colors this should do it.

![2015-10-12_08h20_51](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/6/686f0fa805e4961c7eb6f5bae76b82a779dffbab.png)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

Also here’s a GIF of it in action

![ColorReplace](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/4/43e42fa8e9b4e18e2db6cc3fea7748ee0e6797eb.gif)

---

<div class="post-metadata">

**Author:** ![Brian\_Nickel](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@Brian\_Nickel](https://forum.dynamobim.com/u/Brian_Nickel)\
**Post date:** [October 13, 2015, 3:09pm UTC](https://forum.dynamobim.com/t/matching-a-color-by-string-to-a-color-in-dynamo-that-overrides-graphics/2356/4 "2015-10-13T15:09:43Z")

</div>

Kulkul and John,

Thank you very much for your help, this did the trick! I greatly appreciate your time on this!

Best Regards,

Brian D. Nickel
