# Change line styles

**URL:** <https://forum.dynamobim.com/t/change-line-styles/110666>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 9, 2025, 5:38pm UTC](https://forum.dynamobim.com/t/change-line-styles/110666 "2025-06-09T17:38:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Cormack](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david_cormack/32/197422_2.png) [@David\_Cormack](https://forum.dynamobim.com/u/David_Cormack)\
**Post date:** [June 9, 2025, 5:38pm UTC](https://forum.dynamobim.com/t/change-line-styles/110666/1 "2025-06-09T17:38:52Z")

</div>

Purpose is to update legacy projects with linestyle names which need to be changed to my current more logical project standard. This works OK but its cumbersome to input old and new names in.  
The code blocks _New Line Style_ and _Line Style to Change_ are the only inputs I can get to work. The Line Styles drop down (archilab I think) doesnt work in place of the code block entry. Any ideas why?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/d/2d69f72d8be688a8218d3660b17c128f892c3e35.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [June 9, 2025, 6:18pm UTC](https://forum.dynamobim.com/t/change-line-styles/110666/2 "2025-06-09T18:18:06Z")

</div>

If you use a String node instead of a Code Block you can make the styles inputs. If you have a known list of old names and new names then you could just build a dictionary or use Excel to read the name changes to make. That seems like a better option if you’re changing a bunch of types across a bunch of projects.
