# Color Room Attributes

![](/files/V5QKxEDmYOvViYBAxp6g)

![](/files/-Ma9I6L-zQC03xniMpnM) - [\[source code\]](https://github.com/ladybug-tools/honeybee-grasshopper-core/blob/master/honeybee_grasshopper_core/src//HB%20Color%20Room%20Attributes.py)

Color Honeybee rooms in the Rhino scene using their attributes.

This can be used as a means to check that correct properties are assigned to different Rooms.

### Inputs

* **rooms\_model \[Required]**

An array of honeybee Rooms or honeybee Models to be colored with their attributes in the Rhino scene.

* **attribute \[Required]**

Text for the name of the Room attribute with which the Rooms should be labeled. The Honeybee "Room Attributes" component lists all of the core attributes of the room. Also, each Honeybee extension (ie. Radiance, Energy) includes its own component that lists the Room attributes of that extension.

* **legend\_par**

An optional LegendParameter object to change the display of the colored rooms (Default: None).

### Outputs

* **mesh**

Meshes of the room floors colored according to their attributes.

* **legend**

Geometry representing the legend for colored meshes.

* **wire\_frame**

A list of lines representing the outlines of the rooms.

* **values**

A list of values that align with the input \_rooms noting the attribute assigned to each room.

* **colors**

A list of colors that align with the input Rooms, noting the color of each Room in the Rhino scene. This can be used in conjunction with the native Grasshopper "Custom Preview" component and other honeybee visualization components (like "HB Visulaize Quick") to create custom visualizations in the Rhino scene.

* **vis\_set**

An object containing VisualizationSet arguments for drawing a detailed version of the ColorRoom in the Rhino scene. This can be connected to the "LB Preview Visualization Set" component to display this version of the visualization in Rhino.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ladybug.tools/honeybee-primer/components/1_visualize/color_room_attributes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
