Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

How to convert Energyplus IDF file - building geometry to json format ?

asked 2017-09-10 23:59:39 -0500

sde gravatar image

updated 2017-09-11 10:50:24 -0500

How to convert Energyplus IDF file - building geometry to json format ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-09-11 04:22:18 -0500

updated 2017-09-12 03:42:34 -0500

I believe you're a tiny bit early on this. There is currently a work in progress by notably @MarkAdams (aided by Ksennia Burova and Preston Shires) on Pull Request #5893 that is planned to go in E+ v8.8.0.

If you're feeling confident, you can checkout the code of the PR, and build compile EnergyPlus yourself. I believe the function you're after is around IdfParser#L165.


I actually found this presentation from Building SImulation 2017: 2017_IBPSA_JSON that will reference this companion repository: IBPSA-BuildingSim-2017-JSON. In this repository you'll find a JSON-enabled EnergyPlus (see "Releases" tab to download) and instructions to run an IDF and also produce the epJSON.

IDF input (with epJSON converted output)

./energyplus -c -d Outputs/ -w USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw 1ZoneUncontrolled.idf

Otherwise I'm pretty sure you could use eppy for this, perhaps not directly, but since it stores everything in a python dict-like objects it shouldn't be too hard to create a JSON output.

edit flag offensive delete link more


Thank you Julien. Is it possible to view this JSON file in 3D model viewer(like three.js) ?

sde gravatar imagesde ( 2017-09-14 02:26:36 -0500 )edit

Directly, no. You should look at the view_model measure on BCL, which uses a JSON file (different format, vA3C JSON) and which goal is to visualize an OpenStudio model in a browser. That might be informative!

Julien Marrec gravatar imageJulien Marrec ( 2017-09-14 02:45:48 -0500 )edit

Yes i got it. JSON file format should be similar to this.

sde gravatar imagesde ( 2017-09-14 23:20:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools



Asked: 2017-09-10 23:59:39 -0500

Seen: 35 times

Last updated: Sep 12