generative modeling for Rhino
Is it possible to run a vb script in a VS 2010 solution?
Thank you all
I don't understand, what do "RhinoCommand", "VS2010" and "parameter" have in common?
Are you looking to populate a Grasshopper parameter with data from a custom Plugin that exposes a custom Command? If so, you may want to use the RhinoScript access, some (very few) details provided here and here.
David thank you for responding, I think you're the only one to respond.
When I said I'm talking about VS 2010 visual studio 2010.
I create a plugin rhp with a new command.
so I use a new class runcommmand.
Interesting links, thank you but you think that by staying in VB I can use the functions assign data parameter?
I am surprised to find few results about it.
It will certainly be difficult. It's easy to do this sort of stuff when your code has a reference to Grasshopper.dll, but that basically means running from a GHA.
You may be able to get somewhere using Reflection of the C# dynamic keyword, but it will certainly be cumbersome.
If access to RhinoScript is easy, so I should be able to write a function like this:
doc = "C:\Program Files (x86)\Rhinoceros 4.0\Plug-ins\toto.ghx"
Call gh.AssignDataToParameter("Curve Input", curve)
Call gh.AssignDataToParameter("Pt input", pt)
In fact my project is nearing the end, I have everything scripted by rvb I'd like to create a real project rhp.
Thanks for your explication.