# Color geometry in Revit through Dynamo with Display.ByGeometryColor

**URL:** <https://forum.dynamobim.com/t/color-geometry-in-revit-through-dynamo-with-display-bygeometrycolor/10217>\
**Category:** Revit\
**Tags:** revit, geometry, dynamo, color-override\
**Created:** [March 9, 2017, 4:30pm UTC](https://forum.dynamobim.com/t/color-geometry-in-revit-through-dynamo-with-display-bygeometrycolor/10217 "2017-03-09T16:30:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hannes](https://avatars.discourse-cdn.com/v4/letter/h/f0a364/32.png) [@Hannes](https://forum.dynamobim.com/u/Hannes)\
**Post date:** [March 9, 2017, 4:30pm UTC](https://forum.dynamobim.com/t/color-geometry-in-revit-through-dynamo-with-display-bygeometrycolor/10217/1 "2017-03-09T16:30:08Z")

</div>

Hi, i use Dynamp 1.2 and Revit 2016.

1. Is there a way to color geometry in Revit with Dynamo?  
I tryed this with the node “Display.ByGeometryColor” but i only dye the geometry in Dynamo.

2. Is it possible to import new created geometry and color them in Revit? For example lines? and how?

In my example i dye existing geometry(walls) and try to dye created geometry (solid line):

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

Here is a link to similar discussion: [Surface color gradient in revit](https://forum.dynamobim.com/t/surface-color-gradient-in-revit/8577)

---

<div class="post-metadata">

**Author:** ![Steven](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/steven/32/112504_2.png) [@Steven](https://forum.dynamobim.com/u/Steven)\
**Post date:** [March 11, 2017, 12:47am UTC](https://forum.dynamobim.com/t/color-geometry-in-revit-through-dynamo-with-display-bygeometrycolor/10217/2 "2017-03-11T00:47:41Z")

</div>

This should get you there.

> [@Change color of elements depending on distance from crane](https://forum.dynamobim.com/t/change-color-of-elements-depending-on-distance-from-crane/2191):
>
> My self and a colleague have been tasked with coming up with a way of using dynamo to colour elements depending on the distance they are away from a model of a crane. We are currently in the process of coming up with ideas as to what is the best way to go about this… The outcome would need to be a all the element are different collars depending on their distance from the crane e.g. if it was\<= 20m - element would be blue, if the element was 21m to 30m the element would be red etc… The distance…

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [March 11, 2017, 9:33am UTC](https://forum.dynamobim.com/t/color-geometry-in-revit-through-dynamo-with-display-bygeometrycolor/10217/3 "2017-03-11T09:33:27Z")

</div>

@Hannes To change colors in Revit use _Element.OverrideColorInView_  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/2/8/28887eb8aed2c702be366e630d7d331b0db16a10.png)

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [March 11, 2017, 10:41pm UTC](https://forum.dynamobim.com/t/color-geometry-in-revit-through-dynamo-with-display-bygeometrycolor/10217/4 "2017-03-11T22:41:18Z")

</div>

> [@Vikram\_Subbaiah](#):
>
> Element.OverrideColorInView

[https://dynamonodes.com/2016/01/27/rhythm-node-index/](https://dynamonodes.com/2016/01/27/rhythm-node-index/)

---

<div class="post-metadata">

**Author:** ![Hannes](https://avatars.discourse-cdn.com/v4/letter/h/f0a364/32.png) [@Hannes](https://forum.dynamobim.com/u/Hannes)\
**Post date:** [March 12, 2017, 4:32pm UTC](https://forum.dynamobim.com/t/color-geometry-in-revit-through-dynamo-with-display-bygeometrycolor/10217/5 "2017-03-12T16:32:01Z")

</div>

Thx Vikram…i don’t know why i haven’t found this node;)

---

<div class="post-metadata">

**Author:** ![wael11](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@wael11](https://forum.dynamobim.com/u/wael11)\
**Post date:** [April 26, 2020, 5:09pm UTC](https://forum.dynamobim.com/t/color-geometry-in-revit-through-dynamo-with-display-bygeometrycolor/10217/6 "2020-04-26T17:09:01Z")

</div>

Is there a node that does a similar coloring in Revit to Autodesk.DesignScript.Geometry.Line objects please?

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [November 16, 2023, 6:20pm UTC](https://forum.dynamobim.com/t/color-geometry-in-revit-through-dynamo-with-display-bygeometrycolor/10217/7 "2023-11-16T18:20:47Z")

</div>

> [@truevis](#):
>
> [https://dynamonodes.com/2016/01/27/rhythm-node-index/](https://dynamonodes.com/2016/01/27/rhythm-node-index/)

That link no longer works in 2023. This still works: [Revit.Elements.Element - OverrideColorInView](https://truevis.com/nodes/revit-elements-element-overridecolorinview/)
