First time here? Check our help page!
1

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

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

ChrisPinto's avatar
11
ChrisPinto
asked 2016-10-27 06:55:24 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-04-16 11:06:59 -0500
edit flag offensive 0 remove flag close merge delete

Comments

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
add a comment see more comments

1 Answer

2

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.

ljbrackney's avatar
3.8k
ljbrackney
answered 2016-10-28 08:56:30 -0500
edit flag offensive 0 remove flag delete link

Comments

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 openstudio@nrel.gov (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
add a comment see more comments