Grasshopper

algorithmic modeling for Rhino

Hi,

How to make one .gha/.dll file from several scripts?

I have several C# scripts written in Visual Studio, each one is 1 project file.

Thanks,
Petras

Views: 1017

Attachments:

Replies to This Discussion

All together on the same project, you can do this in two ways:


- You can do a code file for each component. In the solution explorer, on the project icon you give right click: Add> new element> choose the gh template and paste your code; or add> existing file. (the key names may be different, I have it in Spanish).


- You can put all your classes in the same code file. If you have more of a class that inherits from gh_component, then the GHA will have more than one component.

I think that's all. Also you have other code file in your proyect, something like NamePluginInfo, where you can define some .gha properties as author, contact, icon for the tabs...

I don't know if it is what you want but intralattice is a good example with one GHA and many components.

https://github.com/dnkrtz/intralattice

Just for curiosity. I began with Visual Studio and component. My first component seems not to work for some people (win 8, 64 bit ?). Do you have specific compilation on VS ? 

You should not use the x86 or x64 build flavours, but instead opt for the 'Any CPU'.

Thanks David. 

Hi Daniel,

Thank you for a reply. It helped me:)

Kind Regards,

Petras

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