algorithmic modeling for Rhino
I taking first steps with custom components but I am having a problem:
The component is not loading into its specified ribbon tab: MyBase.New("TestComponent", "ghTest", "Test Component", "Paramsx", "Specialx")
I'm sure everything else follows the directives in the SDK help file and the bin path is added to the Developer settings path list. I'm sure I'm missing something basic.
Any help to get me going would be appreciated.
(Rhino 4 SR8, VS 2010, WIN7)
Tags:
When I load your GHA file it adds a Paramsx tab and a Specialx panel with the blue icon in there.
I noticed you have copies of GH_IO.dll and rhinocommon.dll in your bin folder. This is very bad, you should remove the ones that are there and make sure your dll references are set to CopyLocal=False.
Where does the component end up if you load it?
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Thanks David,
Removing the reference files and setting the copy flags did the trick.
In order to hit breakpoints you need to take the following steps:
1) in the _GrasshopperDeveloperSettings command, disable memory loading.
2) " " " add your bin folder to the Component search paths
3) make sure your projects builds as a gha, not a dll
4) Set your project debug start action to 'Project' and tell VS to start Rhino.exe
Some of these require manually editing the project files if you're using VS Express.
This comes up all the time, I started writing a little application that made these modifications automatically, but got stuck. I'll see if I can get unstuck otherwise I'll put the details in the Grasshopper SDK help file.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
David I'm sorry that you have to explain every step but I'm not entirely clear:
In VS 2010 (Pro) I have three options: [1] Start project [2] Start external program [3]...
Do you mean from Step 4 above that I need to select the second option and specify the Rhino exe path? (If I do this and run the project no breakpoints are hit when I manipulate the component in the project Rhino.GH instance.)
Yes, you need to start Rhino4.exe (or Rhino.exe in the case of Rhino5) from here. When you start debugging it should start Rhino. Your breakpoints should go empty (red circles instead of red discs). Then as Grasshopper loads your GHA file, they should go solid again and you should hit breakpoints.
Actually, I just remembered, if you're using VS 2010 you can only debug in Rhino5.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Thanks, I'll give RH5 a try.
Am I right in asuming RH4 and RH5 can both be installed on the same machine without conflict?
Well yes, it tells me in what source code file and on what line (ideally) the error occured, since you don't have source for Grasshopper (I should hope :), it can't find the file.
It's odd it couldn't find any more information though as I do ship grasshopper.pdb (Programmer Data Base) with the installer which is supposed to help windows figure out exactly where something went wrong.
Is there an actual error message as well?
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi David,
I installed RH5 and the 02/2011 GH release on my workstation (Win XP Vs2010) with the same symptoms.
I recorded a screencast which shows you that it fails on the very first step:
Step Error
Thank for looking into this.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by