Rhino3D has changed its .net plugin development implementation. Although you can still use the Rhino.NETSDK to create Rhino plug-ins with the same capabilities as Rhino C++ SDK developers, however, Rhino.NETwill NOT be available in Rhino 6. Rhino3D instead prefers using RhinoCommon if possible, andRhinoCommon 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:
  • 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.
    image
  • Fill-in the project name etc, as shown below in the wizard: 
      image
    • Click Finish and wait for a couple of seconds:
      image
    • Rhino will generate the skeleton code for you to work on:
      image

    • 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
    image


  •  image

    • 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.
    image
    • Run the new Rhino command you have just developed, yeah!
    image
    Happy coding and happy rhino plugin developing!
  • Post a Comment

     
    Top