# Finding overridden items in views?

**URL:** <https://forum.dynamobim.com/t/finding-overridden-items-in-views/39636>\
**Category:** Revit\
**Created:** [August 19, 2019, 2:57pm UTC](https://forum.dynamobim.com/t/finding-overridden-items-in-views/39636 "2019-08-19T14:57:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mountain](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@Mountain](https://forum.dynamobim.com/u/Mountain)\
**Post date:** [August 19, 2019, 2:57pm UTC](https://forum.dynamobim.com/t/finding-overridden-items-in-views/39636/1 "2019-08-19T14:57:23Z")

</div>

Just curious if anyone’s come across a script to find over ridden items in views in revit? Eg when someone overrides the colour of an item in a specific view only.

Looking to create a process to evaluate model “health” and if people are overriding too often when they can be using filters its not good practice. Need to be able to find the over-ridden items and interrogate them though so wondering if its achievable in dynamo / has anyone else looked into this.

---

<div class="post-metadata">

**Author:** ![cgartland](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cgartland/32/45378_2.png) [@cgartland](https://forum.dynamobim.com/u/cgartland)\
**Post date:** [August 19, 2019, 6:30pm UTC](https://forum.dynamobim.com/t/finding-overridden-items-in-views/39636/2 "2019-08-19T18:30:09Z")

</div>

Hi, see below:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/f/bfeb0c797d7bed5e1a5a535dd28f7889f836b44e.png)  
[Element Color Overrides.dyn](https://forum.dynamobim.com/uploads/short-url/aZ6tOTRpt1HvAKWO3dHW3MBIq0K.dyn) (8.5 KB)

```
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

elements = UnwrapElement(IN[0])
doc = UnwrapElement(IN[1])
view = UnwrapElement(IN[2])

if not hasattr(elements, ' __iter__'):
	elements = [elements]
	
overrides_all = []
for element in elements:
	id = element.Id
	overrides = view.GetElementOverrides(id)
	color_cut_fill = overrides.CutFillColor.IsValid
	color_cut_line = overrides.CutLineColor.IsValid
	color_proj_fill = overrides.ProjectionFillColor.IsValid
	color_proj_line = overrides.ProjectionLineColor.IsValid
	
	color_test = any([color_cut_fill,
					  color_cut_line,
					  color_proj_fill,
					  color_proj_line])
	
	overrides_all.append([element, color_test])
	
OUT = overrides_all

```

In the above script, I get the OverrideGraphicSettings for each element, from which I determine the Cut and Projection colors for both Fill and Line. If any of the 4 colors are valid (meaning they have been overridden), I return `True`.
