Grasshopper

algorithmic modeling for Rhino

Guide to creating custom grasshopper 0.6.X components

People might find this useful.  Please do let me know if you find any errors or omissions.

Best regards,

Ben Sitler

Note: on 2/4 at 13:00 I updated the manual to reflect the discussion on where to locate components on the Grasshopper ribbon.

Views: 19304

Attachments:

Replies to This Discussion

David,

The Grasshopper App store! It sounds like a great new feature for the next Grasshopper release..as if you didn't have enough on your plate already, haha!

You could have a built in scheme for people to add both free and pay components just like Itunes, perhaps using Paypal or something...it would be like the universal Rhino developer installer on steroids.

Cheers,
Ben Sitler
Very interesting idea.
Well I'm certainly not going to make anything commercial. The responsibility would be enormous. Another problem is that it is in fact very easy to make an evil component that will consistently crash Grasshopper on startup, or even wipe large parts of your hard-drive. I'm guessing nobody will purposefully upload destructive components, but we have to somehow cater for this possibility.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Being from the generation of file-sharing, I tend to favor the free "open-source" version....
But a built in app-browser sounds very interesting....
Open source doesn't suit many people. If you're an employee at a large firm, it's often already difficult enough to get access to a tech support forum, let alone post some of your work online.

I fully agree that sharing is a good thing, I'm just not 100% convinced the principle extends to open-source as well.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Ben

thanks for the document. It is very thorough and I was able to create the component example. Great!

However, could you provide some information regarding how to debug a component, and for that matter a Rhino plug in, within the VS IDE?

Once you copy the compiled .GHA DLL to the grasshopper plug in direcrtory, how can you debug the code using "breaks" ? What settngs do i need to set in the VS Properties dialogue box of the project? How do you get rhino and grasshopper to run while in debug mode?

Cheers

Steve
Im noting that Im not able to install the RMA.VisualStudioWizards.dll to my GAC when dragging an ddropping. Im running windows 7 Professional 64 bit. I note that I can do it when running Windows XP 64 bit. Anyone else experienced this?

Do I need the RMA.VisualStudioWizards.dll installed to sucessfully stop at debug points in my code when in debug mode?

Cheers
No.

RMA.VisualStudioWizards are only used to facilitate making Rhino RHP plugins. But they're not even required for that, just handy.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
To debug, do the following:

1) Inside the _GrasshopperDeveloperSettings Command, uncheck the "Memory load..." option. (It's still called *.EHC, but it's supposed to be galled *.GHA).

2a) If you're using Visual Studio professional, then go to the Project Properties, Debug tab and set the "Start action" to "Start external program". Navigate towards Rhino.exe as the external program.

2b) If you're using Visual Studio Express this option may not exist, in which case you have to close Visual Studio, find the YourProject.vbproj.user (or YourProject.csproj.user if you're using C#) file, open it in a text editor and add the the debug action property groups. My *.vbproj.user files look like this:


<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<StartAction>Program</StartAction>
<StartProgram>C:\Program Files\Rhinoceros 4.0\System\Rhino4.exe</StartProgram>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<StartAction>Program</StartAction>
<StartProgram>C:\Program Files\Rhinoceros 4.0\System\Rhino4.exe</StartProgram>
</PropertyGroup>


--
David Rutten
david@mcneel.com
Poprad, Slovakia
Just for clarity:


--
David Rutten
david@mcneel.com
Poprad, Slovakia
Dvaid thank you so much for the reply. I will try your suggestion and let you know how I get on,

cheers.
Typically this sort of thing should be set up by a Project Wizard, but we haven't written one yet. Since VS 2010 is out now, has anybody tried to see if they have made this UI available in the new Express editions?

--
David Rutten
david@mcneel.com
Poprad, Slovakia

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