# Geometry Color from Space Analysis Package (BySurfaceColors)

**URL:** <https://forum.dynamobim.com/t/geometry-color-from-space-analysis-package-bysurfacecolors/98413>\
**Category:** Geometry\
**Tags:** revit, geometry, dynamo\
**Created:** [February 23, 2024, 4:16pm UTC](https://forum.dynamobim.com/t/geometry-color-from-space-analysis-package-bysurfacecolors/98413 "2024-02-23T16:16:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickDodge](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nickdodge/32/99479_2.png) [@NickDodge](https://forum.dynamobim.com/u/NickDodge)\
**Post date:** [February 23, 2024, 4:16pm UTC](https://forum.dynamobim.com/t/geometry-color-from-space-analysis-package-bysurfacecolors/98413/1 "2024-02-23T16:16:43Z")

</div>

@Vikram_Subbaiah you addressed a similar problem on this post a few years back: [Geometry Color (GeometryColor.ByGeometryColor) - #3 by Vikram\_Subbaiah](https://forum.dynamobim.com/t/geometry-color-geometrycolor-bygeometrycolor/53692/3)

How would you address this same issue with a GeometryColor.BySurfaceColors node? I have been generating different studies with the SpaceAnalysis Package and have not found a good way to bring the dynamo geometry in a colorized format back into revit. I have tried both of the set ups in the image below and have issues when I plug the color node into the OverrideColorInView node because the large number of colors generated for the study.

My ultimate hope is to get these into revit in a meaningful and correctly scaled way instead of just taking a screen shot and adding it into a plan view.

Also someone mentioned that @GavinNicholls might be able to help with this question.

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

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [February 23, 2024, 6:17pm UTC](https://forum.dynamobim.com/t/geometry-color-from-space-analysis-package-bysurfacecolors/98413/2 "2024-02-23T18:17:59Z")

</div>

Likely best to look into the [analysis](https://www.revitapidocs.com/2024/958e2e12-587d-f188-5d7b-f13d7dbfdf48.htm) section of the Revit API, which allows such types of display. Might be a bigger lift though.

EDIT: Forgot about the node `FaceAnalysisDisplay.ByViewFacePointsAndValues`. Should do what you’re after. 🙂

---

<div class="post-metadata">

**Author:** ![NickDodge](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nickdodge/32/99479_2.png) [@NickDodge](https://forum.dynamobim.com/u/NickDodge)\
**Post date:** [February 26, 2024, 2:42pm UTC](https://forum.dynamobim.com/t/geometry-color-from-space-analysis-package-bysurfacecolors/98413/3 "2024-02-26T14:42:10Z")

</div>

@jacob.small thank you for the quick reply. I believe this is the route I need to get the final desired result but it dont not seem to be working as expected. I have never worked with Analytical Surfaces in Revit, so I might be missing something very simple, but i have checked all of my 2D and 3D view templates to make sure I have these elements turned on and I have created and applied an Analysis Display Style to the best of my knowledge. The node is functioning but is pushing out 156 Revit.AnalysisDisplay.FaceAnalysisDisplay elements, but nothing is showing up in revit. Any insights you have will be very helpful! 👍

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

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

This forum seemed like a step in the right direction but I am not sure it will do what I am trying to do.

> <https://github.com/DynamoDS/DynamoRevit/issues/2304>
>
> \## Dynamo version
> 
> 0.9.2
> \## Operating system
> 
> Windows 7
> \## What did you do?
> 
> Run… FaceAnalysisDisplay.ByViewFacePointsAndValues and FaceAnalysisDisplay.ByViewSurfaceData
> \## What did you expect to see?
> 
> Coloured surfaces in Revit relating to analysis results
> \## What did you see instead?
> 
> Node outputs more than one Revit.Display and only one surface gets colorized in Revit
> I've also started a thread here:
> http://dynamobim.org/forums/topic/face-analysis-display-by-view-face-points-and-values-node-bug/
> !\[archilab\](https://cloud.githubusercontent.com/assets/18419461/14601235/6a8adf6c-05a4-11e6-8436-6234812c66e7.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [February 26, 2024, 2:46pm UTC](https://forum.dynamobim.com/t/geometry-color-from-space-analysis-package-bysurfacecolors/98413/4 "2024-02-26T14:46:42Z")

</div>

I can try to take a stab at it in Revit 2023 or 2024 later. You’ll have to backport to whatever build you’re using.

PS: you should consider moving to VASA instead of space analysis, as the former is the replacement for the later for this type of work. It’s both faster and leverages 3D geometry instead of 2d.

---

<div class="post-metadata">

**Author:** ![NickDodge](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nickdodge/32/99479_2.png) [@NickDodge](https://forum.dynamobim.com/u/NickDodge)\
**Post date:** [February 26, 2024, 2:54pm UTC](https://forum.dynamobim.com/t/geometry-color-from-space-analysis-package-bysurfacecolors/98413/5 "2024-02-26T14:54:56Z")

</div>

I will definitely check this out. Thanks for the recommendation.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [February 26, 2024, 4:50pm UTC](https://forum.dynamobim.com/t/geometry-color-from-space-analysis-package-bysurfacecolors/98413/6 "2024-02-26T16:50:42Z")

</div>

This should get you started with both (I didn’t want to setup space analysis for a sample analysis as I already had VASA):

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

 ![Visibility Analysis into Revit](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/f/5fa01547dcbd62ac18115ec2735bf0f5f5eefd9b.png)  
[Visibility Analysis into Revit.dyn](https://forum.dynamobim.com/uploads/short-url/zatV0ZJaaB5lK1fSKwxv5flkD2T.dyn) (110.6 KB)
