@PohNee wrote:
Hi,
I created a command that inherits Rhino.Commands.Command and in this command, I added a Rhino.Input.Custom.GetObject instance. While the command is waiting for the user to select an object, the user might trigger another command or the same command by clicking on the buttons on the toolbars.
Based on my observation: (Please correct me if my observation is wrong)
If the active command is not decorated with [Rhino.Commands.CommandStyle(Rhino.Commands.Style.ScriptRunner)], other commands are blocked from being triggered.As the command that I added requires to run Rhino.RhinoApp.RunScript(…), I can’t remove the CommandStyle attribute.
How can I block other commands from executing while a command is active?
Thank you
Posts: 1
Participants: 1