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

I need a getting started example that uses C++ api's.

asked 2016-10-27 06:55:24 -0500

ChrisPinto's avatar

updated 2017-04-16 11:06:59 -0500

I need the headers, lib, the dll's and a getting started example.

edit retag flag offensive close merge delete


For what? OpenStudio?

ljbrackney's avatar ljbrackney  ( 2016-10-27 11:19:40 -0500 )edit

Yes for open studio or energy plus

ChrisPinto's avatar ChrisPinto  ( 2016-10-27 23:14:34 -0500 )edit

EnergyPlus does not have an API, although it may have a simple one at some point. The OpenStudio API is essentially the EnergyPlus API.

__AmirRoth__'s avatar __AmirRoth__  ( 2016-10-28 09:34:37 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-10-28 08:56:30 -0500

The documentation you're looking for is here. The C++ code examples (primarily the OS App) are fairly heavy duty and located in GitHub. The simplest/most accessible examples are Ruby based and will leverage the 2.0 CLI. Since there's parity between the Ruby bindings and C++ objects and methods, you can probably learn a lot from looking at measures, unit tests, etc. in the SDK or measure repositories. Perhaps one of the developers could chime in with a link to a very specific example if we knew the kind of thing you are looking for.

edit flag offensive delete link more


As Larry said, the fastest and easiest way to learn the OpenStudio API is via the Ruby bindings and measures. However, if you have an application where you really want to use C++ it's probably best to contact us at (I didn't see an email in your contact info), we can set up a time to talk about your application.

macumber's avatar macumber  ( 2016-10-31 10:25:52 -0500 )edit
ChrisPinto's avatar ChrisPinto  ( 2016-11-02 05:11:40 -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

1 follower


Asked: 2016-10-27 06:55:24 -0500

Seen: 213 times

Last updated: Oct 28 '16