Grasshopper

algorithmic modeling for Rhino

I'm looking for a way to build GH files programatically, and then run it from an external C# application. Is there any API for accessing GH via an external C# app? Alternatively is there python scripting or similar that can access the GH commands?

The rationale:

GH has a lot of powerful commands that expand on Rhino's built-in 3D capabilities. While Rhino has an API for C# (RhinoCommon and the older SDK), I'm not aware of any such thing for GH. It would be amazing to access the power of GH via C# macros.

Regards, Harsh

Views: 1183

Replies to This Discussion

There's nothing in GH that will help, you'll have to write your own GHA plug-in which provides this access.

you can certainly build GH files programmatically - but it depends what you mean by "external" c# application. You will not be able to access much of use from the GH SDK outside of a running instance of GH (meaning you could write a plugin FOR grasshopper as David suggests, but not a standalone app). You may be interested in this post on the FAQ: Is it possible to call the functions of a Grasshopper component fro... - and in particular James Ramsden's approach described here demonstrates how to construct a "virtual" GH document, add components to it, and retrieve solution results.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service