# Python Script - Function

**URL:** <https://forum.dynamobim.com/t/python-script-function/44005>\
**Category:** Revit\
**Tags:** python\
**Created:** [December 4, 2019, 11:10am UTC](https://forum.dynamobim.com/t/python-script-function/44005 "2019-12-04T11:10:23Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![AlexanderBerg](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alexanderberg/32/82944_2.png) [@AlexanderBerg](https://forum.dynamobim.com/u/AlexanderBerg)\
**Post date:** [December 9, 2019, 7:19am UTC](https://forum.dynamobim.com/t/python-script-function/44005/12 "2019-12-09T07:19:55Z")

</div>

@Revit_Noob it’s in the post one above. The other one is in here.

> [@Override Graphic Settings in all Views](https://forum.dynamobim.com/t/override-graphic-settings-in-all-views/43889/7):
>
> Make sure the length of your elements list and view list match. (element that is on view should be paired with the view) import clr clr.AddReference("RevitAPI") from Autodesk.Revit.DB import OverrideGraphicSettings, Color clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager doc = DocumentManager.Instance.CurrentDBDocument elements = UnwrapElement(IN[0]) rgbcolor = IN[1]…

---

_[View the full topic](https://forum.dynamobim.com/t/python-script-function/44005)._
