This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
developer:zoorhinoplugin [2020/11/25] sandy [Requirements] |
developer:zoorhinoplugin [2020/11/25] sandy [Rhino Plug-in Sample] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Creating Rhino C++ Plugins that use the Zoo ====== | ====== Creating Rhino C++ Plugins that use the Zoo ====== | ||
> **Developer: | > **Developer: | ||
- | > **Summary: | + | > **Summary: |
===== Overview ===== | ===== Overview ===== | ||
Line 20: | Line 20: | ||
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. | 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 C++ Plug-in | + | ===== Creating a Rhino C++ Plugin |
- | The following are the general steps required to create a Rhino plug-in. | + | The following are the general steps required to create a Rhino plugin. |
- | - Make sure you have the [[http:// | + | - Make sure you have Rhino 5.0 installed. |
- | - Make sure you have the [[http:// | + | - Make sure you have the Rhino 5.0 C++ SDK installed. |
- Launch Microsoft Visual Studio 2010. | - Launch Microsoft Visual Studio 2010. | ||
- | - Create a new project, in C++, based on the **Rhino 5.0 Plug-in** project template. | + | - Create a new project, in C++, based on the **Rhino 5.0 Plugin** project template. |
- | - Build your plug-in. | + | - Build your plugin. |
- | - Launch Rhino and use **PlugInManager** to install your plug-in | + | - Launch Rhino and use **PlugInManager** to install your plugin |
- | ===== Adding Licensing Support to your Plug-in | + | ===== Adding Licensing Support to your Plugin |
- | After you have built and tested your basic plug-in, you can add licensing support as follows: | + | After you have built and tested your basic plugin, you can add licensing support as follows: |
- Add a new .CPP file to your project. | - Add a new .CPP file to your project. | ||
- In this .CPP file, declare a new class that is derived from **CRhinoLicenseValidator**. | - In this .CPP file, declare a new class that is derived from **CRhinoLicenseValidator**. | ||
- Override the **CRhinoLicenseValidator:: | - Override the **CRhinoLicenseValidator:: | ||
- | - Override and implement the **CRhinoLicenseValidator:: | + | - Override and implement the **CRhinoLicenseValidator:: |
- Create one (and only one) static instance of your object. | - Create one (and only one) static instance of your object. | ||
- | - In your plug-in' | + | - In your plugin' |
- | - Build your plug-in. | + | - Build your plugin. |
- | - [[developer: | + | - [[developer: |
- | - Launch Rhino and test your plug-in. When your plug-in is loaded | + | - Launch Rhino and test your plugin. When you load your plugin |
{{: | {{: | ||
===== Managing your License ===== | ===== Managing your License ===== | ||
- | Rhino plug-ins | + | Rhino plugins |
{{: | {{: | ||
- | ===== Rhino Plug-in | + | ===== Rhino Plugin |
- | [[https:// | + | [[https:// |
\\ | \\ |