How can I exit my plugin?

Dear friends,
How can we exit entire plugin in ruby same as what spacebar key do?

Thank you for your help in advance.

e.g.:
Model.html#select_tool-instance_method


# by passing nil 
Sketchup.active_model.select_tool(nil)

or
Sketchup.html#send_action-class_method


Sketchup.send_action("selectSelectionTool:")

Edit. corrected as Dan suggested

1 Like

Thank you so much.

The select_tool() method does not accept String tool names, nor can it activate any native tool other than the SelectionTool (by passing nil.)

To be precise, the method is meant for activating Ruby tools.

2 Likes