Grasshopper

algorithmic modeling for Rhino

Hi all,

 

this is the first release of the Grasshopper assembly wizard, to start new assembly development in C# and Vb.Net more simply.

http://visualstudiogallery.msdn.microsoft.com/9e389515-0719-47b4-a4...

 
Includes the sample code for an Archimedean spiral and:

  • C# Add-on - Provides a C# project with a GH_Component-derived class and a GH_AssemblyInfo-derived class.
  • C# Component - Adds a single component class item.
  • Vb.Net Add-on - Provides a Vb.Net project with a GH_Component-derived class and a GH_AssemblyInfo-derived class.
  • Vb.Net Component - Adds a single component class item.

 

- Giulio
_______________
giulio@mcneel.com

Views: 10965

Replies are closed for this discussion.

Replies to This Discussion

Hi Diederik

that's correct. A .gha is compiled code, but Python is usually just text. There are some ways to make this nevertheless work, but most would need to make a couple of changes to Grasshopper as well. At the moment referencing an external module is probably the best choice.

Thanks,

- Giulio
________________
giulio@mcneel.com

Hi Giulio,

Can you please provide more information about the possible ways to make it work for Python scripts?

Thanks,

Mostapha

Hi everyone,

I've just started using the wizard and I'm really excited using it. Developing components could go really fast using this.

Right now I'm having one problem debugging since I'm a newbie to using Visual Studio I couldn't figure out the solution.

I'm using Visual Studio 2010 with Rhino 5 for debugging. Every time I press Start Debugging rhino 5 starts up fine but I don't see my component in the grasshopper window when I run grasshopper just after rhino opens. I found a gha file in the bin folder in my project folder so if I copy it manually to the grasshopper component folder then I could see it in the grasshopper window.

Is there anything I have to setup in order to debug the component?

Thank you in advance!

Hi Group.

Like Junichiro, I'm also battling with the debugging of the component... I've installed the wizards to VSe 2010 and they work fine. Although I also have to copy the gha manually from the bin-folder. Could this be changed in the post-build command line options? Now they read:

"Copy "$(TargetPath)" "$(TargetDir)$(ProjectName).gha"
Erase "$(TargetPath)"

I guess they could be extended to copy the gha to the grasshopper components folder as well?

When I try to debug, I hit play, rhino starts, but nothing happens when the (manually copied) component runs... Do I have to change something in Visual Studio for debugging to work? I sort of thought the wizard would set this up?

I would greatly appreciate some instructions on how to debug the component. Cheers, Eirik

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