algorithmic 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 Rutten
david@mcneel.com
Poprad, Slovakia
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.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
If access to RhinoScript is easy, so I should be able to write a function like this:
Dim doc
doc = "C:\Program Files (x86)\Rhinoceros 4.0\Plug-ins\toto.ghx"
Call gh.Opendocument(doc)
Call gh.AssignDataToParameter("Curve Input", curve)
Call gh.AssignDataToParameter("Pt input", pt)
Call gh.RunSolver(True)
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.
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by