Grasshopper and Rhino: C# Scripting
2h 48mIntermediate2020-08-31
Authors

Jeremy Graham
Registered Architect
Course details
Grasshopper, the visual programming plugin for Rhino, offers many features that can help you generate complex parametric models. Want to push the boundaries of what Grasshopper can do even further? This course shows you how. Join instructor Jeremy Graham as he goes over the fundamentals of C# programming in Grasshopper, explaining how to extend the plugin's functionality by working directly with the Rhino API. To begin, Jeremy demonstrates how to set up Grasshopper to work with C#. He then covers basic C# concepts like strings, collections, and arrays, and steps through how to build all kinds of geometry with C#. After completing the course, you'll have the knowledge you need to start using C# to extend the functionality of Grasshopper and improve your ability to formulate innovative designs.
Skills covered
GrasshopperRhinoRobert McNeel & AssociatesC#Product and Industrial Design3D ModelingVisualization and Real-TimeAECProduct and ManufacturingAnimation and IllustrationProgramming LanguagesMicrosoftSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Pushing Grasshopper with C#
- 02 - What you should know
1. Grasshopper Setup
- 03 - The C# component
- 04 - Script editor structure
- 05 - Data access
- 06 - Object-oriented programming
- 07 - RhinoCommon
- 08 - Searching RhinoCommon
2. C# Basics
- 09 - Commenting
- 10 - Variables
- 11 - Numbers
- 12 - Strings
- 13 - Collections
- 14 - Arrays
- 15 - Comparing with operators
- 16 - Conditionals
- 17 - Logical operators
- 18 - Looping with the for loop
- 19 - Foreach looping
- 20 - Nested loops
- 21 - Methods
- 22 - Reference vs. value types
- 23 - Try and catch
3. Building Geometry
- 24 - Creating curves
- 25 - Transforming
- 26 - Surfaces
- 27 - Divisions
- 28 - DataTrees
- 29 - Paneling
- 30 - Splitting
- 31 - Recursion
- 32 - Baking
Conclusion
- 33 - Next steps