Disable Rhino commands

Hi,

How can we disable some commands(mostly geometry editing) while our Plug-in is running, to prevent messing up the parametric modelling that we provide through the plug-in?

Ideally we should disable all, and have a list of exceptions.

Thank you!

Cristina

Hello,
In my opinion, this is not a good idea, but it can be done in Command.BeginCommand Event (if you are using Rhinocommon), then send “_Cancel” Or “!” string to commandline with RhinoApp.SendKeystrokes().

Marcin

There really is no way of doing this. You should work to make your plug-in work in as many situations as you can.

In the case you mention, you should have event watchers that notify the user when they’ve messed the model.

– Dale