# Modify Line Style Color

**URL:** <https://forum.dynamobim.com/t/modify-line-style-color/10856>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [April 5, 2017, 8:23pm UTC](https://forum.dynamobim.com/t/modify-line-style-color/10856 "2017-04-05T20:23:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jordan\_Mussett](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@Jordan\_Mussett](https://forum.dynamobim.com/u/Jordan_Mussett)\
**Post date:** [April 5, 2017, 8:23pm UTC](https://forum.dynamobim.com/t/modify-line-style-color/10856/1 "2017-04-05T20:23:05Z")

</div>

I have found good information on remapping line weights of projection lines for plans, elevations, etc.:  
[http://dynamobim.org/forums/topic/changing-line-weight/](http://dynamobim.org/forums/topic/changing-line-weight/)

I have also found good information that involves python to set the Line Style Line Pattern:

> **[How to Set Line Pattern in Line Style](https://forums.autodesk.com/t5/revit-api-forum/how-to-set-line-pattern-in-line-style/td-p/3731078?nobounce)**
>
> I'm creating new line styles in Revit MEP 2013 through the API in VB.Net, and I've almost got everything figured out... except setting the line pattern. There doesn't seem to be a way to do this one, last step. Any ideas? Here's what I have so far:...

But I haven’t really found any custom nodes or a good path the leads to modifying the RGB color of a named Line Style. I have software that can run dynamo scripts (or a series of scripts on workshared enabled files) at night when the Revit files are not being accessed:  
[http://www.imaginit.com/software/imaginit-utilities-other-products/clarity](http://www.imaginit.com/software/imaginit-utilities-other-products/clarity)

The goal is to move the lines over to the correct Line Styles with one script then change the Line Style color of the incorrect Line Style to Red (with a second script) - so it shows up red - - as something to correct. I have attached a general version of the script I use to reassign (map) one line style to another. Simple one, “Thin Lines” to “1 - Solid”. I’m sot sure if I’m going to need to use a hybrid with python in it for the color part I am trying to accomplish.  
[Line Style Remap - Thin Lines.dyn](https://forum.dynamobim.com/uploads/short-url/hnkVXSDByoSUUolSTimD9V8CVe3.dyn) (15.7 KB)

---

<div class="post-metadata">

**Author:** ![uaftab.cem19](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/uaftab.cem19/32/122000_2.png) [@uaftab.cem19](https://forum.dynamobim.com/u/uaftab.cem19)\
**Post date:** [August 10, 2021, 7:09am UTC](https://forum.dynamobim.com/t/modify-line-style-color/10856/2 "2021-08-10T07:09:36Z")

</div>

thanks man, this helped a lot! 😍
