Grasshopper

algorithmic modeling for Rhino

Hi,

I added an Export to Openstudio component on my canvas. I got an error telling me to download the Csharp library from here: https://app.box.com/s/y2sx16k98g1lfd3r47zi

First, if I may make a suggestion:

1. I would add these steps to the installation instructions

2. I would double quote the path, I got confused by whether I should include the "_" at the end of the path (%appdata%\Ladybug\OpenStudio_).

Anyway, I downloaded the libraries, and pasted all the dll to the OpenStudio_ folder needed.

But it throws an exception on line 67:

Runtime error (IOException): file does not exist: C:\Users\...\AppData\Roaming\Ladybug\OpenStudio_\openStudio.dll
Traceback:
  line 67, in script

One thing is that the box link for the libraries give you a zip that does include a dll that looks very similar... except it's cased differently: it is Upper Camel Case (OpenStudio.dll) and not Lower Camel Case (openStudio.dll)

Another thing is that even once I have renamed the above dll to match the casing, I still get this exception, even though os.path.isfile(os.path.join(openStudioLibFolder, "openStudio.dll")) returns True.

If I type the path on the run command it does land at the appropriate file...

I'm confused, any ideas?

Views: 1240

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Interesting. That seems overcomplicated a little bit but does the job, thanks!

Julien,

I am glad that you were able to get the model to run.  To answer your Rhino questions, I will first say that it can be very easy to make bad geometry in Rhino, especially if you are a new user who is just learning how to use Rhino.  Rhino offers great geometric freedom and power but, as they say, with great power comes great responsibility.

1. Object snapping will always take precedence in Rhino over the Planar mode.  So you really have to create your surfaces as planar from the start.  Extruding curves and/or making boxes will always ensure planar surfaces.

2. As I said, you really need to make sure that you make your geometry planar from the start.  There's no easy fix to turn all nonplanar surfaces into a planar ones but you should remember that triangles are always planar and, because of this, meshing will always produce planar geometries (or if you have a simple way of breaking up a surface into triangles, this will probably be better than automated meshing).

-Chris

Chris,

Your initial paragraph about making bad geometry and power = responsability resonates pretty strongly with me right now :)

Lesson learned!

And thanks for your hard work and great tutorial videos.

Cheers,

Julien

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service