Rhino.Comands.Command not recognised

Hi. I have 10 Rhino.Commands.Command cs files, and they all show in the Tools->Options->Plugins->OctaneRenderForRhino commands like. I have added 2 now commands (separate .cs files), and they are not showing in the Rhino commands list. If I start typing their EnglishName, they do not pop up either. What are the common causes for commands not being added to Rhino from a plugin please? Any other tips on how to debug this? Rhino6 and Rhino7 latest SR’s.

Thanks

Paul

Hi @pkinnane,

Rhino caches plug-in command names in the Registry. For example:

This allows command names to auto-complete even if the plug-in is not loaded.

If you add additional command to your plug-in, you will need to load your plug-in (once) so the newly added command can be written to the Registry.

Does this help?

– Dale

Thanks Dale

The plugin loads when Rhino starts. So I enabled Load Protection on my plugin, restarted Rhino6, then enabled the plugin, and the two new commands are still missing, and they are absent from the registry (Computer\HKEY_CURRENT_USER\Software\McNeel\Rhinoceros\6.0\Plug-ins\F109BD23-4CF3-4C0B-9F83-06BE474B0152\CommandList).

Paul

Maybe add a third command, one that does nothing. If that also fails to show up, please share the code file here.

If it does show up, check the differences between it and the two that aren’t showing up.

The class with your command code must be public and part of the C# project when building.

1 Like

My command class was not public! Thank you so much for helping resolving this.

Paul

1 Like

Gets me every time as well, glad I could help out :smile: