algorithmic modeling for Rhino
I encountered a problem while create a new GH component with GH add-on by using Visual Studio 2010. I installed Wizard assembly from website, it shows under tools>extension Manager. I got an error,( please see attached the screen shot.) so the new project with add-on cannot open at all.
"system.Argument null exception:Value cannot be null
Parameter name:path1
at system.IO.Path.Combine(String path1, String path 2)
at GH wizard.UserInputForm..ctor(Dictionary2 repmacements)"
at GHWizard.CollectInformationWizard.RunStarted(object auotmationObject)
Dictionary 2 replacementsDictionary,WizardRunKind run Kind, Objevt[]
customParams)"
Any idea what went wrong ?
Thank you for your time,
Tags:
http://visualstudiogallery.msdn.microsoft.com/9e389515-0719-47b4-a4...
The current wizard is still "For Grasshopper 0.8.xx". It may need to be updated by somebody at McNeel.
What I can guess that is not working is the way to find Grasshopper, as it expects to find it under "Rhinoceros 4.0\Plugins\". Can you check that?
I guess yes, I have rhino 5 evaluation & Rhino 4 and latest grasshopper 0.9.0014.
I will ask my classmates, none of them had this problem during the lecture.
Is there any way to fix the problem ?
If I am right,it seem they are under Grasshopper file;
GH_IO.dll, GH_IO.xml, GH_IO.Viever.exe, GH _Util ?
should I install 08.xx version of Grasshopper ? both R4 and R5 i have latest version of grasshopper installed.
I no longer work for McNeel, so please take this as freely given advice without any warranty. One possibility is that you installed Grasshopper for Rhino 5, which, under a certain point of view, is "another program". Also, try to select the Grasshopper assembly folder manually.
On a lighter note, I am curious about the class where you are studying. Where is that?
Thank you so much for your help. I will try later today after hours, but I don't think I understood what i should try. Could u please be more specific for me. I am kind of lost in translation when it comes very technical.
The class is Object Oriented Programming at Product Architecture Lab graduate program under ME at Stevens Institute of Technology. We are very diverse group of students; architects, civil engineers mechanical engineers.
Thank you so much again,
Still no luck on wizard. apprarenlty I have the same configuration but my VS didn't start the GHA.
Thank you so much.
Sorry, I do not know in this situation. Please wait for somebody from McNeel to contact you, or contact them at the address above. They will probably have to look at this with you. Thanks
Giulio
I have the same issue, same error message.
Any solution to fix it?
Thanks
I found a solution. If someone could double check it and update the wizard it would be great.
First part of the solution:
Correct UserInputForm.cs
line 49 The variable should be grasshopperPath and not rhinocommonPath
(this is not the bug but if the correction is not made, then the form doesn't clearly ask for the dll
Second part of the solution (and here it corrects the bug)
Do something so we do not execute line 53 -if (File.Exists(Path.Combine(path, "rhinocommon.dll")))- if path == null.
The way I did it is certainly not the most elegant one but it's efficient. I have added the two following line of code
if (path == null)
path = "C:\\";
--------------
Now I have also corrected the code so it finds the dll on my computer. But I'm not sure the installation is the same for everyone. On my computer the information GrashopperFinder.cs is looking for is not under the LocalMachine hive but under the CurrentUser hive! So FindGrasshopper (line 19) is never checking for the right hive.
As I'm on a Windows 7 - 64, I have just added at line 28 the following code
SearchRegistryKey(rh5_64_Reg, rh5_RegName, RegistryHive.CurrentUser, RegistryView.Registry64, strings);
Now everything seems to work with the latest version of Grasshopper. So next step is to put the right .NET version and also extend the wizard to Visual Studio Express 2012 or beyond (Already done for the wizard for Rhino, so it shouldn't be an bid problem).
Anyways, thank you if someone who know how to code can double check what I did and correct everything (i.e. put the right code on GitHub + the corrected template on the VisualStudioGallery
Regards
Serge
Hi Serge,
nice that you went through to help fix this. Somebody can fix that at McNeel. There's likely more to do, and possibly something to remove, because that code was written at the time of Rhino 4 and when Grasshopper was installed on a machine level. Now there are .rhi installers, so locations are different.
Giulio
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
© 2024 Created by Scott Davidson. Powered by