devin_jernigan at July 16th, 2013 04:40 — #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 at July 17th, 2013 13:46 — #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 at July 19th, 2013 04:44 — #3
They were written by Giulio and I have no idea how they work.
stevebaer at July 19th, 2013 11:16 — #4
Ok, I sent Giulio an email invitation to see if he knows what is possibly going on.
piac at July 19th, 2013 13:58 — #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 at July 19th, 2013 15:08 — #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 at July 19th, 2013 15:31 — #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 at July 21st, 2013 14:56 — #8
Is there a way that I can do this manually?
huaxiamengqing at July 23rd, 2013 05:41 — #9
Hi,dear david. Glad to see you here!
piac at July 24th, 2013 09:47 — #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 at July 25th, 2013 21:43 — #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.