From the course: Grasshopper and Rhino: C# Scripting

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

RhinoCommon

RhinoCommon

From the course: Grasshopper and Rhino: C# Scripting

Start my 1-month free trial

RhinoCommon

- [Instructor] Now that we know what dot notation is, let's have a look at how we can use it to create objects using C#. To do this, we'll use the RhinoCommon library. The RhinoCommon library contains all the classes and structures that allow us to interact with Rhino using C#. This is also known as an API. An API or application programming interface simply provides different methods, which one can use to communicate with a piece of software via code. In our case, the RhinoCommon API provides methods and classes, which we can use to send commands to Rhino. A common way of thinking about the API is like a waiter in a restaurant. Say we have a menu of items to order from which the kitchen can make. The problem is we can't get the item we want from the menu as we don't have access to the kitchen. This is where a waiter or the API comes in. We can request items from the kitchen, Rhino in our case, by requesting it through…

Contents