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 [Overview] |
— (current) | ||
---|---|---|---|
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 plug-in 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 plug-ins that use the Rhino license manager to access the Zoo must be signed with an Authenticode certificate issued by McNeel Plug-in 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. For more information on plug-in signing, see the following: | ||
- | |||
- | [[developer: | ||
- | |||
- | ===== Creating a Rhino .NET Plug-in using RhinoCommon ===== | ||
- | The following are the general steps required to create a Rhino plug-in. | ||
- | - Make sure you have the [[http:// | ||
- | - Make sure you have the [[http:// | ||
- | - Launch Microsoft Visual Studio 2010. | ||
- | - Create a new project, either C# or VB.NET, based on the **RhinoCommon Plug-in** project template. | ||
- | - Build your plug-in. | ||
- | - Launch Rhino and use **PlugInManager** to install your plug-in (to verify that it was built properly). | ||
- | |||
- | ===== 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> | ||