The Rhino Installer Engine provides a simple way to distribute plug-ins for Rhino 4.0, Rhino 5.0 32- and 64-bit. To learn more about distributing plug-ins using the Rhino Installer Engine, read The Rhino Installer Engine.
In your PlugIn.cpp file:
Replace:
// Rhino plug-in declaration
RHINO_PLUG_IN_DECLARE
with
// Rhino plug-in declaration RHINO_PLUG_IN_DECLARE // Return a short, friendly name for the plug-in. RHINO_PLUG_IN_NAME(L"MyPlugIn") // unique id for this plug-in RHINO_PLUG_IN_ID(L"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX") // auto-incrementing version number RHINO_PLUG_IN_VERSION( __DATE__ " " __TIME__ )
Be sure to
Change this line in CMyPlugIn::CMyPlugIn() from
m_plugin_version = __DATE__" "__TIME__;
to
m_plugin_version = RhinoPlugInVersion();
Change these two function definitions to read:
GUID CMyPlugIn::PlugInID() const { // Return a unique identifier for the plug-in. return ON_UuidFromString(RhinoPlugInId()); } const wchar_t* CMyPlugIn::PlugInName() const { // Return a short, friendly name for the plug-in. return RhinoPlugInName(); }
The RhinoPlugInId() function returns the string you define in the RHINO_PLUG_IN_ID macro.
The RhinoPlugInName() function returns the string you define in the RHINO_PLUG_IN_NAME macro.
Tags: