Quantcast
Channel: Dotnet/C# – Xinyustudio
Viewing all articles
Browse latest Browse all 204

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

$
0
0

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:

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


  • Filed under: CAD, Dotnet/C#, Programming Tagged: .net, C#, example, plugin, Rhino, rhino common, Rhino.net, Rhino3d, step by step, tutorial

    Viewing all articles
    Browse latest Browse all 204

    Latest Images

    Trending Articles



    Latest Images