devin_jernigan — 2013-07-16T04:40:19-04:00 — #1
I keep getting this message when I try to create a new Grasshopper plug-in Project in Visual Studio 2010. I'm using Win 7 64-bit. Anybody have any suggestions on how to fix this?
Thanks in advance,
stevebaer — 2013-07-17T13:46:56-04:00 — #2
That looks like a bug in the project wizard. @DavidRutten, do you know how the project wizards work or was this written by Giulio?
davidrutten — 2013-07-19T04:44:41-04:00 — #3
They were written by Giulio and I have no idea how they work.
stevebaer — 2013-07-19T11:16:22-04:00 — #4
Ok, I sent Giulio an email invitation to see if he knows what is possibly going on.
piac — 2013-07-19T13:58:07-04:00 — #5
This is probably to be considered a bug today. The wizards probably searches for Grasshopper in places where today it is not any longer present (user-level install, Rhino 5 installer, etc). A simple fix might be to put an "if Grasshopper is not found", and allow the wizard to continue anyways.
piac — 2013-07-19T15:08:51-04:00 — #6
I've just proposed some changes to the wizards. Somebody should probably compile them and upload them... this will not fix the fact that probably Gh will not be found, but should at least diminish the amount of exceptions that are otherwise thrown in that case
stevebaer — 2013-07-19T15:31:00-04:00 — #7
That makes sense since GH recently moved to another location on user's computers now that it is being installed with the RHI system. I'll have to look into recompiling these wizards; need to do it anyway to get VS2012 support. You'll probably be getting some questions from me soon
devin_jernigan — 2013-07-21T14:56:46-04:00 — #8
Is there a way that I can do this manually?
huaxiamengqing — 2013-07-23T05:41:56-04:00 — #9
Hi,dear david. Glad to see you here!
piac — 2013-07-24T09:47:48-04:00 — #10
From the message box, it seems that Grasshopper cannot be found. This link shows the way Grasshopper is still searched for in your system:
At the moment, as you can see, it is only searching in LocalMachine registry keys, which was meaningful only in the past. Right now, you'd have to install versions of Grasshopper for Rhino 4 or copy things around to make this work.
Rather than doing that, I would suggest to just use the result of the wizard I just ran for you. It would be better if you'd check all folders and locations listed in
C:\Program Files (x86)\Rhinoceros 5.0\System\rhinocommon.dll
C:\Program Files (x86)\Rhinoceros 4.0\Plug-ins\Grasshopper\Grasshopper.dll
C:\Program Files (x86)\Rhinoceros 4.0\Plug-ins\Grasshopper\GH_IO.dll
C:\Program Files (x86)\Rhinoceros 5.0\System\Rhino4.exe
C:\Program Files\Rhinoceros 5.0 (64-bit)\System\Rhino.exe
You can just fix these locations, if they are different on your system, with a text editor before opening the .sln file. Please check these locations for existence twice -- it's easy to miss a (x86) or anything. I do not think other changes should be necessary to compile.
I hope this helps,
devin_jernigan — 2013-07-25T21:43:25-04:00 — #11
I'll let you know if I run into any issues, but it looks like to me on first glance that this will work just fine.