Grasshopper

algorithmic modeling for Rhino

Hi

I have succesfully programmed few vb components and compiled them through visual studio. Since te number of them is growing, I would like to make them work as one compiled .dll and gh_assembly, not as single components but one plugin.

how to join them in visual studio? is there any workflow ?

Views: 627

Replies to This Discussion

Just keep adding classes to your project. There's no upper limit (or lower limit for that matter) of the number of GH_Component classes per GHA assembly. You can both add existing *.vb files to a project via the Solution Explorer panel, or you can add new empty files and paste your code into them.

Hi

Thanks! I figured it out. I thought that this is something different.  And how to write/save/compile a library like this?  http://spatialslur.com/code/ 

Join GitHub. Download the source or fork it. Compile it into a dll, reference that dll in your project. When you distribute your project you must also distribute the spatialslur.dll.

Alternatively (not recommended though) you add the SpatialSlur *.cs files directly to your project, that way you don't end up with 2 dlls, but it makes updating SpatialSlur to newer versions a nightmare.

Oh, you can also download the dll directly from spatialslur.com, the compiled binary is provided.

I ment how to do something like this by my own.

To be more specific- how to write my own library of classes/functions in visual studio and save in a way that it will be accesible in vb script component in gh interface (not in visual studio). 

Open a new proyect with Class library template in VS. You will find the .dll in the bin folder after compiling the first time.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service