# Use GeniusLoci's SetElementOverrides to override element color in view returns null

**URL:** <https://forum.dynamobim.com/t/use-geniuslocis-setelementoverrides-to-override-element-color-in-view-returns-null/64196>\
**Category:** Revit\
**Tags:** dynamo, color-override\
**Created:** [May 20, 2021, 8:20pm UTC](https://forum.dynamobim.com/t/use-geniuslocis-setelementoverrides-to-override-element-color-in-view-returns-null/64196 "2021-05-20T20:20:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jackli9299](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jackli9299](https://forum.dynamobim.com/u/jackli9299)\
**Post date:** [May 20, 2021, 8:20pm UTC](https://forum.dynamobim.com/t/use-geniuslocis-setelementoverrides-to-override-element-color-in-view-returns-null/64196/1 "2021-05-20T20:20:02Z")

</div>

Hi,

I am trying to override the line color of some of the elements I filtered out in view in Revit through Dynamo. Right now I am able to find the OverrideGraphicSettings.ByProperties to get the override and Document.ActiveView to get the view I want. The default Element.SetOverrideInView seems like not refreshing the view I am currently on so I used GeniusLoci’s custom node View SetElementOverride instead. However, the output list of the final node seems like only exporting null elements. Could anyone help me identify where I did wrong? Thank you.

My script is provided below:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/4/545f2e7f94b6747a7804960ce84afe8c03d2e5b0.png)

---

_[View the full topic](https://forum.dynamobim.com/t/use-geniuslocis-setelementoverrides-to-override-element-color-in-view-returns-null/64196)._
