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 2018-01-05 08:16:33 -0500

dhollman's avatar

updated 2018-01-30 07:39:43 -0500

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!

edit retag flag offensive close merge delete

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  ( 2018-01-30 17:40:21 -0500 )edit

@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  ( 2018-01-31 07:56:47 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-31 08:04:17 -0500

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

edit flag offensive delete link more

Your Answer

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

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2018-01-05 08:16:33 -0500

Seen: 310 times

Last updated: Jan 31 '18