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

Calling epluswth.dll from C# programs

asked 7 years ago

dhollman's avatar

updated 7 years ago

I am looking to find out if anyone has published C# code to import the functions from Weather Convertor Program epluswth.dll?

[The documentation here] (https://bigladdersoftware.com/epx/doc...) gives examples of doing this from VB (not sure if that is "classic" VB6 or actually VB.NET). I'm looking for the equivalent for C#.

Thanks!

Preview: (hide)

Comments

When I skimmed the documentation, what struck me was how dated it seems, which is no great surprise since there's been no work on the Weather Converter (except bug fixes) since it was released 20 years ago. For example, the latest weather file format it can handle is still the TMY2, which was released in 1993 and abandoned by NREL in 2005. Other limitations of note include poor ground temperatures, no snow and rain flags, day of week for the first record (!), etc. So, is there any interest to improve the WeatherConverter program and the epw format, and how to transmit that to the EPlus Team?

Joe Huang's avatar Joe Huang  ( 7 years ago )

@Joe Huang I think this would have value. When we started using EnergyPlus more often I noticed the same thing; our internal tool actually supported some file formats that the EP tool did not. AFAIK the source code is not even available right now, but getting it in public (e.g. on GitHub) would be a good first step also. That would allow for contributions both in terms of file formats and also maybe other capabilities. Even having people contribute settings files for custom formats would be useful / avoid reinvention.

dhollman's avatar dhollman  ( 7 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 7 years ago

dhollman's avatar

I eventually came up with some C# imports based on documentation and experimentation. It appears to work OK.

https://github.com/DaveInCaz/EnergyPlusWeatherConverter-Wrapper-CS

Preview: (hide)
link

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 365 times

Last updated: Jan 31 '18