OpenStudio PINVOKE error with new libraries

Dear all,

I have been having this issue reported on github here https://github.com/mostaphaRoudsari/Honeybee/issues/170.

Should I assume that this has not been resolved yet?

If that is the case, is it possible to download an earlier version of OpenStudio dlls?

Kind regards,

Theodore.

Edit: I should note that I am using the openstudio_CSharp_64bits_Ver.1.4.0 file (not the 1.5.0).

Also downloaded the latest OpenStudio version and then copy/pasted the CSharp openstudio folder to Ladybug folder. Still getting the same error. The way I understand it there is an old version that won’t have this problem. I would love it if you could tell me which and if I can follow the same process (i.e. installing Openstudio and copy/pasting) to downgrade to.

Cheers!

Bump. Any updates on this?

Thanks in advance!

Kind regards,

Theodore.

Theodore,

You cite a page related to (what I think is) the longest-running github issue that we have:

https://github.com/mostaphaRoudsari/Honeybee/issues/214

As you can see, Mostapha and Dan Macumber of the OS team have been at this issue for a long time and it is unfortunately hindering further development of the OpenStudio connection. It seems to just affect certain systems (laptops more than desktops for some reason). I didn’t get a working version at any point on my old laptop (no matter what the version of OpenStudio that I tried) but my new laptop is able to handle it for some reason.

Hopefully we all gear up for another go at fixing this soon.

-Chris

Hi Chris,

Thanks for your answer. I understand from the long discussion that it has been a difficult issue. I was wondering though, since my laptop was working before I updated to the latest Openstudio, would there be a solution to this using earlier version dll files? And do you maybe know of a link for them? Tried looking but didn’t manage (Mostapha’s link is already updated).

Here’s to hoping this get’s resolved!

Thanks!

Kind regards,

Theodore.

Hi Theodore,

Unfortunately still the only solution to this issue, right now, is using the old version of OpenStudio. We couldn’t figure out what’s going on with this!

Mostapha

Mostapha,

I did not realize that the components still work with older versions of OpenStudio. I know that these older versions are not ideal but using them would at least allow me to continue developing with the OS SDK for the time being until we get the PINVOKE thing fixed. I am guessing that one of the versions on this page might still work:

https://github.com/NREL/OpenStudio/releases

Do you know how far back in the releases we have to go to not have the PINVOKE error?

-Chris

Hi Chris, I think the version is 1.4.0. You won’t be able to find it in the release. You will need the 64bits compiled version which was not part of the official release at that time. Axel was making it every time just for us! I should still have a copy of the old version somewhere.

Mostapha,

It would be great if I could get the exe from you at some point. I noticed that they only have the source code for download on the OpenStudio github:

https://github.com/NREL/OpenStudio/releases/tag/v1.4.0

-Chris

Hi Chris,

I assume the one that we have uploaded at box is 1.4.0 > https://app.box.com/s/y2sx16k98g1lfd3r47zi

If that didn’t work here is 1.3.5 >

http://developer.nrel.gov/downloads/buildings/openstudio/builds/1.3…

I’m downloading 1.8.0 right now to see if that will make any difference.

Chris and Theodoros, I have a good news. I just tried version 1.8.0 and it worked with no issues. Can you also try and see if it will work on your systems > https://github.com/NREL/OpenStudio/releases/download/v1.8.0/OpenStu…

Hello!

Sorry for being away in this lately. I have a few days off work, I will quickly try a small model tomorrow morning (as it’s quite late here) and come back to you tomorrow!

Sounds like amazing news though!

As an additional question, are the components still being developed? I remember not all the ASHRAE templates were working.

Kind regards,

Theodore.

Hi Theodore, Thanks.

The development for OpenStudio has been on hold for this issue. Hopefully now we can get it started again. I also assume there has been many modifications on OpenStudio side! Let me know if the new version works on your system.

Just in case you haven’t done it before, once you download and install OpenStudio 64bits you can find C# libraries at C:\Program Files\OpenStudio 1.8.0\CSharp\openstudio copy this files to working directory on your system\openstudio and then open Grasshopper and test your file.

IIIIIIIIIIIIIIIITTTTTTTT WWWOOOORRRRKKKS!!!

It’s time to take care of some major backlogged development:

https://github.com/mostaphaRoudsari/Honeybee/issues/359

-Chris

That sounds exciting Chris!

Can you please let me know if there is anything interesting we can add? Referring also to this post, if you haven’t seen it: http://www.grasshopper3d.com/group/ladybug/forum/topics/research-pr…

Thanks for all the hard work!

Kind regards,

Theodore.

This is terrific…I feel like I’m reading the breaking news. First the Pluto flyby, now the PINVOKE resolution…A great week for scientific discovery! I’m just starting to dig into these tools you’ve bee churning out, and looking forward to it (and spending less time plinking around in IDFs).

all the best,

Nick.

It seems to be working now, which means I can finally start learning how to properly combine honeybee’s tools with Openstudio’s components (had an issue at first on what properties OS is changing on my zones).

I was wondering if we have any news about templates 7 and 8. They seem to not have been implemented yet (this was on the original version I think as well). Is there development going on still on this? I only ask because those 2 programs are at the center of all my modelling apparently.

Kind regards,

Theodore.

Hi Theodore,

There is no active development on systems at this point. I think the latest changes are made by Chien Si. Do you want to start working on them until we really get started on Butterfly?

Mostapha