# How to find Bim model Space element colors

**URL:** https://forum.techsoft3d.com/t/how-to-find-bim-model-space-element-colors/3580
**Category:** HOOPS Visualize Web
**Tags:** code, webviewer, sample
**Created:** [April 16, 2024, 3:55pm UTC](https://forum.techsoft3d.com/t/how-to-find-bim-model-space-element-colors/3580 "2024-04-16T15:55:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![raja.r](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@raja.r](https://forum.techsoft3d.com/u/raja.r)
#### Post date: [April 16, 2024, 3:55pm UTC](https://forum.techsoft3d.com/t/how-to-find-bim-model-space-element-colors/3580/1 "2024-04-16T15:55:40Z")

</div>

i want to know from where this color is set in the code. is it default color for space elements in web viewer?.

 ![Screenshot 2024-04-16 at 9.23.49 PM](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/4/4b7b5edbfd8af889428ea62291951a8781b5101e.jpeg)

---

<div class="post-metadata">

### Author: ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)
#### Post date: [April 17, 2024, 6:57pm UTC](https://forum.techsoft3d.com/t/how-to-find-bim-model-space-element-colors/3580/2 "2024-04-17T18:57:36Z")

</div>

Hello,

There isn’t an API to specifically set the color for space elements, per se. That said, it’s possible to get a `Set` object of nodes with a type of [IfcSpace](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/modules/Communicator.StaticGenericType.html#staticgenerictype). At which point, you can set the color by calling [setNodesFaceColor](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.Model.html#Communicator.Model.setNodesFaceColor). For example:

```auto
var space = hwv.model.getNodesByGenericType(Communicator.StaticGenericType.IfcSpace);

var color = new Communicator.Color(255, 0, 255);
hwv.model.setNodesFaceColor(Array.from(space), color);

```

Thanks,  
Tino
