Import issue .idf, .osm

Dear Chris,

I hope you are doing well.

I am writing to ask for your advice regarding an issue I encountered while importing existing OpenStudio energy models into Honeybee in Rhino 8.

I am currently working with residential building archetypes developed for Quebec, aiming to use Honeybee for parametric retrofit analysis and multi-objective optimization.

I imported an existing archetype (R_SF_Det_1fl_1946-1970) using HB Load gbXML OSM IDF, with reset_props_ = False. Although the geometry imports correctly, none of the original energy properties appear to be preserved:

  • All rooms are assigned the Default Generic Construction Set.

  • All rooms receive the Plenum program type.

  • Occupancy, lighting, equipment loads, and schedules are missing.

  • HVAC systems and conditioning assignments are missing.

Consequently, running the imported model through HB Model to OSM produces zero energy consumption and zero conditioned floor area. The import component reports no errors.

Interestingly, the original OSM runs correctly in OpenStudio, producing approximately 23,875 kWh/year, closely matching the archetype’s published value of 23,789 kWh/year. I also tried importing the IDF version, but encountered the same issue.

My installed versions are:

  • Rhino 8

  • Ladybug Tools Grasshopper: 1.10.59

  • Python: 3.13.14

  • OpenStudio SDK: 3.11.0

  • EnergyPlus: 25.2.0

  • Radiance: 5.4

I was wondering whether this is a known limitation of the importer or if there is a recommended approach to preserve the original constructions, internal loads, schedules, and HVAC assignments when importing existing OSM models into Honeybee.

My goal is to work with these validated archetypes without manually reconstructing their energy properties.

I would be happy to share the OSM/IDF files and simulation reports if helpful.

Thank you very much for your time, guidance, and all your contributions to Ladybug Tools.

Best regards,
Bahador

@chris Dear Chris,

I hope you are doing well.

I am writing to ask for your advice regarding an issue I encountered while importing existing OpenStudio energy models into Honeybee in Rhino 8.

I am currently working with residential building archetypes developed for Quebec, aiming to use Honeybee for parametric retrofit analysis and multi-objective optimization.

I imported an existing archetype (R_SF_Det_1fl_1946-1970) using HB Load gbXML OSM IDF, with reset_props_ = False. Although the geometry imports correctly, none of the original energy properties appear to be preserved:

  • All rooms are assigned the Default Generic Construction Set.

  • All rooms receive the Plenum program type.

  • Occupancy, lighting, equipment loads, and schedules are missing.

  • HVAC systems and conditioning assignments are missing.

Consequently, running the imported model through HB Model to OSM produces zero energy consumption and zero conditioned floor area. The import component reports no errors.

Interestingly, the original OSM runs correctly in OpenStudio, producing approximately 23,875 kWh/year, closely matching the archetype’s published value of 23,789 kWh/year. I also tried importing the IDF version, but encountered the same issue.

My installed versions are:

  • Rhino 8

  • Ladybug Tools Grasshopper: 1.10.59

  • Python: 3.13.14

  • OpenStudio SDK: 3.11.0

  • EnergyPlus: 25.2.0

  • Radiance: 5.4

I was wondering whether this is a known limitation of the importer or if there is a recommended approach to preserve the original constructions, internal loads, schedules, and HVAC assignments when importing existing OSM models into Honeybee.

My goal is to work with these validated archetypes without manually reconstructing their energy properties.

I would be happy to share the OSM/IDF files and simulation reports if helpful.

Thank you very much for your time, guidance, and all your contributions to Ladybug Tools.

Best regards,
Bahador

Hi, @Baha

As far as I know,the HB Load gbXML OSM IDF component is limited to importing geometry. To retain all the features and settings from your IDF or OSM, you might want to drop the file into ChatGPT, Claude, or Gemini and prompt it to generate a Honeybee JSON file instead.

A demo prompt like this

I have attached an EnergyPlus (.idf) / OpenStudio (.osm) file. Please convert it into a valid Honeybee JSON (.hbjson) file while preserving all non-geometric properties (constructions, materials, schedules, loads, HVAC systems, and program types).

Instead of manually rewriting the JSON, please write and execute a Python script using the official Ladybug Tools libraries (honeybee_core, honeybee_energy, and honeybee_openstudio / openstudio) to perform this conversion:

  1. Load the .idf or .osm file into a Honeybee Model object (e.g., using Model.from_idf() or translating via OpenStudio).
  2. Check for and resolve any missing default properties or naming conflicts so the model remains valid.
  3. Serialize and export the resulting Honeybee Model to a .hbjson file using model.to_hbjson().
  4. Provide me with the downloadable .hbjson file along with a brief summary of what properties were successfully imported and any warnings encountered during translation.

Thank you @minggangyin , Claude did the job perfectly! I wihs you well.