I am facing a weird issue when runnning GH in automated mode from an external program (by using GH_RhinoScriptInterface, as explained here :
Some components sitting inside the GH_Document are raising number casting exceptions like “Expression generated an error : string 1.5 cannot be cast to double” (seriously???) When this definition runs manually, everything works fine.
My guess is that it comes from a Culture specific problem : in French (my computer language is set to French despite Rhino+GH are in English)., “1.5” is written “1,5”. So, I guess somehow, Grasshopper switches to French because it finds somewhere that the caller thread is French. I set the calling software thread to be “en-US” but it didn’t change anything.
How can I force GH to switch to English and forget about French forever (which sucks for programming anyway) ?
I have little hope that someone has ever seen this issue before though