> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/dragonfly-primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ladybug.tools/dragonfly-primer/components/0_create/join_small_rooms.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.ladybug.tools/dragonfly-primer/components/0_create/join_small_rooms.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
