# Change Color of Layer for Folder of DWGs

**URL:** <https://forum.dynamobim.com/t/change-color-of-layer-for-folder-of-dwgs/92858>\
**Category:** Civil 3D\
**Created:** [August 14, 2023, 5:11pm UTC](https://forum.dynamobim.com/t/change-color-of-layer-for-folder-of-dwgs/92858 "2023-08-14T17:11:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [August 14, 2023, 5:11pm UTC](https://forum.dynamobim.com/t/change-color-of-layer-for-folder-of-dwgs/92858/1 "2023-08-14T17:11:31Z")

</div>

Hey All,

Are there any nodes or python scripts out there that can help change the color of a layer on a folder of DWGs? Details below

1. I have a model file that is x-referenced to multiple sheet files.
2. I need to go into each sheet file and change the color of a layer from black to 252 (gray). I can’t just change this layer in the model file because the layer needs to remain black in another set of sheets.
3. Seems like a good task for some level of automation. Not sure if this has been done in dynamo? If there is a better way to do it with other existing civil 3d tools I am open to that as well.

Thanks

---

<div class="post-metadata">

**Author:** ![y.srewil](https://avatars.discourse-cdn.com/v4/letter/y/e9a140/32.png) [@y.srewil](https://forum.dynamobim.com/u/y.srewil)\
**Post date:** [August 17, 2023, 9:45am UTC](https://forum.dynamobim.com/t/change-color-of-layer-for-folder-of-dwgs/92858/2 "2023-08-17T09:45:30Z")

</div>

Hi,  
Sure! you can call multiple DWG files, then use external functions of the Cambar package to call/ filter layers that you want to change thier color. Finally, use ExternalLayer.SetColor to change the color of the layers.

best

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [August 17, 2023, 4:35pm UTC](https://forum.dynamobim.com/t/change-color-of-layer-for-folder-of-dwgs/92858/3 "2023-08-17T16:35:59Z")

</div>

@y.srewil Thanks for your help! How would I call multiple DWGs? Do I need to do something different than what I have shown below? Also, what if I wanted to change the color of a large number of layers at once (where typing them all into a code block would take too much time)? Is there a better way to call a multitude of layers than I am doing currently? Thanks!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/7/17a0952d7272af9badbd9c369f2558ffee4f06f2.png)

---

<div class="post-metadata">

**Author:** ![zachri.jensen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zachri.jensen/32/205331_2.png) [@zachri.jensen](https://forum.dynamobim.com/u/zachri.jensen)\
**Post date:** [August 17, 2023, 4:36pm UTC](https://forum.dynamobim.com/t/change-color-of-layer-for-folder-of-dwgs/92858/4 "2023-08-17T16:36:57Z")

</div>

> [@hestingjj](#):
>
> How would I call multiple DWGs? Do I need to do something different than what I have shown below?

At the beginning of the graph, use a list of file paths instead of a single file path.

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [August 17, 2023, 4:40pm UTC](https://forum.dynamobim.com/t/change-color-of-layer-for-folder-of-dwgs/92858/5 "2023-08-17T16:40:13Z")

</div>

Is there a quick way to get all the DWG paths from a folder without having to type them out?

---

<div class="post-metadata">

**Author:** ![zachri.jensen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zachri.jensen/32/205331_2.png) [@zachri.jensen](https://forum.dynamobim.com/u/zachri.jensen)\
**Post date:** [August 17, 2023, 4:42pm UTC](https://forum.dynamobim.com/t/change-color-of-layer-for-folder-of-dwgs/92858/6 "2023-08-17T16:42:12Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/07838385472c503c0455c9dc3f99d26f3da299cf.png)
