Csharp for OpenStudio
I tried to start a project in visual studio to create different OpenStudio Models based on a database. Therefore I insert the .dlls from the Csharp Folder in the OpenStudio/bin. But this doesn´t work with OpenStudio 1.8.0/1.8.5/1.9.0. I always get an error Message, when I try to create a model or create a runmanager.
When I try to use OpenStudio 1.3.0, I don´t have any error Messages and I can create surfaces etc.. But when I safe the model, it doesn´t exist without sending an error Message. I can´t see if it works.
What could be the mistake of the programm? How can I get the dll work on visualstudio? What can I do, to make the DLL work in Visual Studio?
Now I change the settings of my project and add a reference to the OpenStudio/Csharp/openstudio Folder and the error Message is not shown. BUT when I try to make a simple model with only one construction and building and save this, nothing happens. There is no error message, but the osm. file doesn´t exist. I used this:
OpenStudio.Model model = new OpenStudio.Model();
....
model.save(new OpenStudio.Path(path),true);