# Import

Pollination Rhino allows for the import/export of geometry and properties in the gbXML, OSM, IDF, hbjson file format.

There are two modes to open the file formats above.

* Open: Creates a new Pollination Rhino Model using the generic template
* Import: It add the model to the current Pollination Rhino model

## Import:

* [Import Honeybee JSON (HBJSON)](https://docs.pollination.solutions/user-manual/rhino-plugin/interoperability/rhino-import/hbjson)
* [Import Green Building XML (gbXML)](https://docs.pollination.solutions/user-manual/rhino-plugin/interoperability/rhino-import/gbxml)
* [Import OpenStudio Model (OSM)](https://docs.pollination.solutions/user-manual/rhino-plugin/interoperability/rhino-import/osm)
* [Import Input Data File (IDF)](https://docs.pollination.solutions/user-manual/rhino-plugin/interoperability/rhino-import/idf)

There is no loss of information when importing HBJSON but only certain model elements\
can be imported from OSM, gbXML and IDF. These are summarized below.

| Model Element                  | HBJSON | OSM            | gbXML            | IDF              |
| ------------------------------ | ------ | -------------- | ---------------- | ---------------- |
| Geometry                       | ☑      | ☑ <sup>1</sup> | ☑ <sup>1</sup>   | ☑ <sup>1 2</sup> |
| Spaces / Zoning                | ☑      | ☑              | ☑                | ☑                |
| Boundary Conditions            | ☑      | ☑              | ☑                | ☑                |
| Face Types (eg. AirBoundary)   | ☑      | ☑              | ☑                | ☑                |
| Opaque Constructions           | ☑      | ☑              | ☑                | ☑                |
| Window Constructions           | ☑      | ☑ <sup>3</sup> | ☑ <sup>3</sup>   | ☑ <sup>3</sup>   |
| Schedules                      | ☑      | ☑              | :x: <sup>5</sup> | ☑                |
| Loads                          | ☑      | ☑              | :x: <sup>5</sup> | ☑                |
| Thermostats + Outdoor Air Req. | ☑      | ☑ <sup>4</sup> | :x: <sup>5</sup> | ☑                |
| Program Types                  | ☑      | ☑              | :x:              | :x:              |
| HVAC Systems                   | ☑      | :x:            | :x:              | :x:              |
| SHW Systems                    | ☑      | :x:            | :x:              | :x:              |
| Natural Ventilation            | ☑      | :x:            | :x:              | :x:              |
| Everything Else                | ☑      | :x:            | :x:              | :x:              |

<sup>1</sup> Formats do not natively support geometries with holes (they are collapsed to a single list of inward-turning vertices on export).\ <sup>2</sup> IDF only supports Apertures/Doors with 3-4 vertices (more complex window geometries are usually triangulated).\ <sup>3</sup> No dynamic behavior of window constructions is imported.\ <sup>4</sup> These always become divorced from ProgramTypes since they are not a part of OpenStudio SpaceTypes.\ <sup>5</sup> These may eventually be supported depending upon [this issue](https://github.com/NREL/OpenStudio/issues/4320).
