# Join Small Rooms

![](/files/U32AEvw9aybVy5ucLznm)

![](/files/UqO8Tbj7oxQGFB2p7MQt) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src//DF%20Join%20Small%20Rooms.py)

Join small Room2Ds together within Dragonfly Stories.

This is particularly useful after operations like automatic core/perimeter offsetting, which can create several small Room2Ds from small segments in the outline boundary around the Story.

### Inputs

* **df\_obj \[Required]**

A Dregonfly Story, Building or Model to have its small Room2Ds joined together across the model

* **area\_thresh**

A number for the Room2D floor area below which it is considered a small room to be joined into adjacent rooms. (Default: 10.0 square meters).

* **join\_to\_large**

A boolean to note whether the small Room2Ds should be joined into neighboring large Room2Ds as opposed to simply joining the small rooms to one another. (Default: False).

### Outputs

* **report**

Reports, errors, warnings, etc.

* **df\_obj**

The input Dragonfly objects with Room2Ds that have had small Room2Ds joined together.


---

# 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/dragonfly-primer/components/0_create/join_small_rooms.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.
