algorithmic modeling for Rhino
Hi All,
I am wondering if there is a way to script in c# a way of adding grasshopper components to the grasshopper canvas. I know that you can do this with the parameters and special components (such as sliders) as seen below.
http://www.grasshopper3d.com/forum/topics/adding-component-to-grass...
However I had no success when trying to add (for example) the line or vector3d components.
Any help would be great.
Thanks!
Tags:
Grasshopper.Instances.ActiveCanvas.InstantiateNewObject(...)
Those SetSliderValue things are all exposed via RhinoScript, which ultimately is a very limited and not at all typesafe approach.
You really want to be using the .NET SDK when you're programming with C#. You need to cast your objects to the correct type, then you can access them using their actual properties and methods.
What exactly are you trying to do?
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson.
Powered by