This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
developer:zoorhinoplugin [2020/08/14] 127.0.0.1 external edit |
developer:zoorhinoplugin [2020/11/25] sandy [Rhino Plug-in Sample] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Creating Rhino C++ Plug-ins | + | ====== Creating Rhino C++ Plugins |
> **Developer: | > **Developer: | ||
- | > **Summary: | + | > **Summary: |
===== Overview ===== | ===== Overview ===== | ||
- | Zoo 5.0 allows 3rd party plug-in | + | Zoo 5.0 allows 3rd party plugin |
- | The Rhino 5.0 C++ SDK allows developers to write plug-ins | + | The Rhino 5.0 C++ SDK allows developers to write plugins |
===== Requirements ===== | ===== Requirements ===== | ||
- | Rhino C++ plug-ins | + | Rhino C++ plugins |
- Microsoft Visual C++ 2005 (required for Rhino 5.0 32-bit) | - Microsoft Visual C++ 2005 (required for Rhino 5.0 32-bit) | ||
- Microsoft Visual C++ 2010 (required for Rhino 5.0 64-bit) | - Microsoft Visual C++ 2010 (required for Rhino 5.0 64-bit) | ||
- | - [[http:// | + | - Rhino 5.0 C++ SDK |
Note, the Express Editions of Microsoft Visual Studio will **not** work, as they do not include MFC. | Note, the Express Editions of Microsoft Visual Studio will **not** work, as they do not include MFC. | ||
- | Also, all Rhino plug-ins | + | Also, all Rhino plugins |
- | [[developer: | + | ===== Creating a Rhino C++ Plugin |
- | + | The following are the general steps required to create a Rhino plugin. | |
- | ===== Creating a Rhino C++ Plug-in | + | - Make sure you have Rhino 5.0 installed. |
- | The following are the general steps required to create a Rhino plug-in. | + | - Make sure you have the Rhino 5.0 C++ SDK installed. |
- | - Make sure you have the [[http:// | + | |
- | - Make sure you have the [[http:// | + | |
- 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:// |
\\ | \\ |