This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
developer:zoorhinocommonplugin [2020/11/25] sandy [Creating a Rhino .NET Plug-in using RhinoCommon] |
developer:zoorhinocommonplugin [2021/01/22] dale removed |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Creating Rhino .NET Plugins that use the Zoo ====== | ||
- | > **Developer: | ||
- | > **Summary: | ||
- | |||
- | ===== Overview ===== | ||
- | Zoo 5.0 allows 3rd party plugin developers to add licensing support for their products to the Zoo. | ||
- | |||
- | The RhinoCommon .NET SDK, new for Rhino 5.0, allows developers to write plugins for Rhino that use the Rhino license manager and obtain licenses from Zoo servers. | ||
- | |||
- | ===== Requirements ===== | ||
- | Rhino .NET plugins are .NET Framework 4.0 assemblies. Thus, to create a .NET plugin for Rhino 5.0, you will need one of the following development tools:: | ||
- | |||
- | - Microsoft Visual C# 2010 | ||
- | - Microsoft Visual Basic .NET 2010 | ||
- | - [[http:// | ||
- | |||
- | Also, all Rhino plugins that use the Rhino license manager to access the Zoo must be signed with an Authenticode certificate issued by McNeel Plugin Security. These certificates are free but must be requested by each developer. Developers must agree to the //Terms of Use// before a certificate is issued. | ||
- | |||
- | ===== Creating a Rhino .NET Plugin using RhinoCommon ===== | ||
- | The following are the general steps required to create a Rhino plugin. | ||
- | - Make sure you have Rhino 5.0 installed. | ||
- | - Make sure you have the [[http:// | ||
- | - Launch Microsoft Visual Studio 2010. | ||
- | - Create a new project, either C# or VB.NET, based on the **RhinoCommon Plugin** project template. | ||
- | - Build your plugin. | ||
- | - Launch Rhino and use **PlugInManager** to install your plugin (to verify that it was correctly built). | ||
- | |||
- | ===== Adding Licensing Support to your Plug-in Project ===== | ||
- | After you have built and tested your basic plug-in, you can add licensing support as follows: | ||
- | - In your plug-in' | ||
- | - In your plug-in' | ||
- | - Build your plug-in. | ||
- | - [[developer: | ||
- | - Launch Rhino and test your plug-in. When your plug-in is loaded for the first time, you will be prompted to enter a license. | ||
- | {{: | ||
- | |||
- | ===== Managing your License ===== | ||
- | Rhino plug-ins that use the Rhino license manager appear in the Licenses page of the Options dialog. Here, the user is allowed to view and manage the license. | ||
- | |||
- | {{: | ||
- | |||
- | ===== Rhino Plug-in Sample ===== | ||
- | [[https:// | ||
- | |||
- | \\ | ||
- | |||
- | {{tag> | ||