Grasshopper

algorithmic modeling for Rhino

Hi everybody,

 

I'm trying to implement a custom class (and its custom methods) that I can use with VBscript components (at this point I don't need the custom component, I think that can come later on), hence conveying information around Grasshopper faster than through geometrical operations, and I stumbled across a couple of questions, maybe you could help me out.

I am following Ben Sitler's guide (http://www.grasshopper3d.com/forum/topics/guide-to-creating-custom)

 

1. IS the custom class a recommended solution? Or is there something simpler? If so, where could I get some references for it?

 

2. and I'm getting the following error message when trying to reference the assembly compiled from Visual Studio:

 

Assembly Error

Could not add Assembly:

' (from here on is a translation, since the error message is originally in portuguese)

Impossible to load file or assembly [path]\Alberti.dll or one of its dependencies. This assembly is composed by a more recent runtime than the currently loaded runtime and cannot be loaded.

 

Why could this be happening?

 

Thanks in advance.

Best, Eduardo

Views: 503

Replies to This Discussion

Hi Eduardo,

 

"This assembly is composed by a more recent runtime than the currently loaded runtime and cannot be loaded."

 

probably means that the dll was compiled 'against' .NET 4.0. Grasshopper in Rhino4 uses .NET 2.0 or .NET 3.5 (whichever newest version is available) and will not be able to load 4.0 assemblies.

 

You can try running in Rhino5, see if it loads there.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Hello David,

that was it!

Thanks again,

Eduardo

I have one more problem to solve: so, I'm building a custom class, to be used via VBscript components. Now my problem is that if I need to change location to my custom assembly of the class, I have to update EVERY VBscript component!

Is it possible to bypass this? Maybe with some kind of import?

 

I'm sorry to be bothering all the time, if there are any good references to the stuff I've been asking (besides you :p) please let me know. Currently I've been relying on Grasshopper3d.com and good ol' Google.

 

Thanks in advance, Eduardo

 

Dumb question, when I reference the assembly on one component all the others are also referenced.

 

Best,

Eduardo

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service