Rhino C# Development (IV) :Using new RhinoCommon API to develop Rhino3D .net plugins

10 Jun

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 approaches in Rhino3D plugin development, refer to my previous blogs:

  • Rhino C# Development (I) : Get Visual Studio Wizard ready
  • Rhino C# Development (II) : HelloRhino
  • Rhino C# Development (III) : Add Winform UI to Rhino

    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!

    Leave a comment

    Posted by on June 10, 2014 in CAD, Dotnet/C#, Programming


    Tags: , , , , , , , , ,

    Leave a Reply

    Fill in your details below or click an icon to log in: Logo

    You are commenting using your account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: