# Assign Colour of objects ByLayer

**URL:** <https://forum.dynamobim.com/t/assign-colour-of-objects-bylayer/105847>\
**Category:** Civil 3D\
**Created:** [November 14, 2024, 4:07pm UTC](https://forum.dynamobim.com/t/assign-colour-of-objects-bylayer/105847 "2024-11-14T16:07:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashimanandhar1417](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@shashimanandhar1417](https://forum.dynamobim.com/u/shashimanandhar1417)\
**Post date:** [November 14, 2024, 4:07pm UTC](https://forum.dynamobim.com/t/assign-colour-of-objects-bylayer/105847/1 "2024-11-14T16:07:51Z")

</div>

Hi

 ![Change Layer names and colour of all objects under one Layer](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/2/0269a92793ee4094a1741f0f4ee253e2d3cf50bf.jpeg)

As per attached file, I have created a graph which selects all the objects within a layer and change to a new layer assigned. I can assign the objects under the new layer with a colour from colour palette. But I wanted to assign colour with ByLayer colour. Could you help me to assign colour ByLayer.

---

<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:** [November 14, 2024, 5:14pm UTC](https://forum.dynamobim.com/t/assign-colour-of-objects-bylayer/105847/2 "2024-11-14T17:14:32Z")

</div>

Hi @shashimanandhar1417,

I’m not sure which version of Civil 3D you are using, but if you’re able to update to Civil 3D 2025.1, then this is quite easy. You can simply plug in a string that says “ByLayer”.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/6/5682432381ce55bd4e55a049a8d14b42f3bd954a.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/b/1bdbc433b3b8cfc7d7eaf1d0205344db0591a81b.png)

---

<div class="post-metadata">

**Author:** ![s.proch](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@s.proch](https://forum.dynamobim.com/u/s.proch)\
**Post date:** [November 15, 2024, 12:30pm UTC](https://forum.dynamobim.com/t/assign-colour-of-objects-bylayer/105847/3 "2024-11-15T12:30:18Z")

</div>

In older versions, you can do a workaround with the Arkance Systems package. However you will need an object in your dwg that already has color by layer.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/a/6a412716ef1cb8debd0e4a41fa228fd4032ecc00.png)

---

<div class="post-metadata">

**Author:** ![Anton\_Huizinga](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/anton_huizinga/32/155377_2.png) [@Anton\_Huizinga](https://forum.dynamobim.com/u/Anton_Huizinga)\
**Post date:** [November 15, 2024, 3:11pm UTC](https://forum.dynamobim.com/t/assign-colour-of-objects-bylayer/105847/4 "2024-11-15T15:11:47Z")

</div>

Not perse. You can also use the GetColorByACI value 256 for ByLayer or 0 for ByBlock.

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

In Civil 2D 2025.1 you will find these nodes in [The Civil Nodes](https://forum.dynamobim.com/t/the-civil-nodes-feedback-thread/105165) package.

---

<div class="post-metadata">

**Author:** ![s.proch](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@s.proch](https://forum.dynamobim.com/u/s.proch)\
**Post date:** [November 15, 2024, 4:27pm UTC](https://forum.dynamobim.com/t/assign-colour-of-objects-bylayer/105847/5 "2024-11-15T16:27:11Z")

</div>

uuuu This is good to know. Thanks @Anton_Huizinga

---

<div class="post-metadata">

**Author:** ![shashimanandhar1417](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@shashimanandhar1417](https://forum.dynamobim.com/u/shashimanandhar1417)\
**Post date:** [November 15, 2024, 5:19pm UTC](https://forum.dynamobim.com/t/assign-colour-of-objects-bylayer/105847/6 "2024-11-15T17:19:20Z")

</div>

Thank you all for all your helps and suggestions. I know you might have given the right solution but the node “Object.SetColor” from Camber Package worked for me.

 ![Node](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/9/59fabfb00059558387d4bd5204080521e7f36fe7.jpeg)
