Grasshopper

algorithmic modeling for Rhino

How to set up Visual Studio Express to create custom components in C#

Hi all,

I recently created a visual guide on setting up Visual Studio Express 2012 (i.e. the free version) so that you can create and debug your own Grasshopper components.

http://jramsden271.wordpress.com/2013/07/30/setting-up-visual-studi...

Most of the information already exists in the GH help file, but I've put it into my own words and added plenty of screenshots - I find this makes it easier to follow. I've shared it with some of my colleagues already who found it useful and said I should publish it somewhere... so here it is. Comments welcome :)

Views: 3294

Replies to This Discussion

Thanks James.

--

David Rutten

david@mcneel.com

For people reading this today -- all these actions are now handled by the assembly wizard, plus the creation of the PlugIn class and the first Command class, with samples.

This assembly wizard extensions can be installed also by people with the free, Express version. Just go to Tools -> Extensions -> Online, and search for Grasshopper (or RhinoCommon, for the Rhino version).

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Many thanks Giulio - I'll be sure to take a look.

Yes, it creates a default post-build event. It's not magic, though :)

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Let's say then just a tiny bit magic, all right. Magics is retained from the work of the previous developer. :)

As far as I know, there is no better way. It's an interesting idea though - any suggestions?

Hi (theGreenCabbage) and James,

I don't think that what you are referring to is possible. You can, however, use the interactive interpreter (Immediate window - Ctrl-Alt-I) once you are debugging and you hit a breakpoint. In some versions of VS and some environments, you can also Edit-and-Continue (very useful feature -  not possible in 2012 and GH as far as I can tell, but it used to be in VS2008, also Express).

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Hey ;) Your link does not work anymore. Is there a PDF or something which you could share with us?

Hi Bob,

I would really suggest that you use the Grasshopper Assembly Wizard to set up the project. Please let me know if there is any issue with that!

Later, the SDK documentation can be downloaded with the _GrasshopperGetSDKDocumentation command.

Please let me know if this was helpful,

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Hi Bob,

Here it is. I moved over to a new site around a couple of years ago.

http://james-ramsden.com/setting-up-visual-studio-express-2012-for-...

As Giulio says (and as my post also says) the Grasshopper Assembly Wizard is the method I now recommend. 

Cheers,

James

I am having trouble with missing Wizards in VS 2017.  I installed the Grasshopper Assembly here:

https://marketplace.visualstudio.com/items?itemName=McNeel.Grasshop...

However, it stopped with "Already installed on all applicable products."  Yet I don't have any assembly wizards when I try to Add... a component from the project browser.

Is it not supported in VS 2017?

Thanks,

Marc

You need the one for V6. The one for V5 is a project that encompassed VS versions from 2010 till 2015. There is no way we can support that many versions going forward, just adding new ones.

At the moment you can still manually select Rhino 5 assemblies in VS 2017.

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

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