# Rejoin to Building

![](/files/sch01opxA3Fav9yQGW8q)

![](/files/NxbydHhoAGYWVOF5Qh6h) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src//DF%20Rejoin%20to%20Building.py)

Rejoin a list of Room2Ds that were originally a part of a Building back to a new Building with updated Room2Ds.

In the event that the input contains Room2Ds that were not a part of an original Building, this component can still be used but the stories will be regenerated based on the Room2D floor elevations and a warning will be given.

### Inputs

* **room2ds \[Required]**

A list of Dragonfly Room2D objects to be re-joined into Buildings.

### Outputs

* **buildings**

Dragonfly Buildings containing the input Room2Ds. This may be multiple buildings when the input Room2Ds originally had several different parent buildings.


---

# 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/rejoin_to_building.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.
