Rhino3D has changed its .net plugin development implementation. Although you can still use the Rhino.NET SDK to create Rhino plug-ins with the same capabilities as Rhino C++ SDK developers, however, Rhino.NET will NOT be available in Rhino 6. Rhino3D instead prefers using RhinoCommon if possible, and RhinoCommon is the new .NET plug-in SDK for Rhino 5+.
To see how to use the old Rhino.net approaches in Rhino3D plugin development, refer to my previous blogs:
In this blog, I am going to show how to use the new RhinoCommon API to develop .net plugins for Rhino3D.
- Download the new RhinoCommon Plug-in SDK:
Project wizards for plug-ins and commands are ready for Visual Studio 2010, 2012 and 2013, both in C# and Vb.Net, and including in Ultimate, Professional, Premium, C# Express, Vb Express and Windows Desktop Express where available.
Same as installing from VS ‘Extension Manager’. After installing the wizards with the Extensions Manager, when you create a new project in Visual Studio, set the Framework to 4.0 or above in order to see the Rhino plug-in in the list.
Fill-in the project name etc, as shown below in the wizard:
- Click Finish and wait for a couple of seconds:
- Rhino will generate the skeleton code for you to work on:
- Build the plugin in VisualStudio, or directly run it by pressing Ctrl + F5, a rhino instance will be fired:
- Go to Rhino’s menu, Tools > Options > Plugins
- Click the install button, browse to the project folder where you have created the plugins, select the compiled binary file (*.RHP), and then click the OK button.
- Run the new Rhino command you have just developed, yeah!
Happy coding and happy rhino plugin developing!