Programmatically restore toolbar after accidentally close

Hi to everyone,
I hope someone may help me to solve this problem.
I have a set of plugins containing their own rui file and toolbar.
I have a function that retrieves all my plugins from registry and I get their own path.
When I get the plugins collection, I run another function that delete all rui files containted in the following folder:

var rhinoUiPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
                                           "McNeel\\Rhinoceros\\7.0\\UI\\Plug-ins");

it works fine because I can see that all rui files owned by my plugins are correctly deleted and Rhino replace them with the new one when the user starts it again. But if the user has accidentally closed the toolbar, even if the rui files copied by Rhino have the toolbar visible attribute set to open, the toolbar remains closed. May I force to reset that toolbar to be open?

Thank’s in advance and Merry Christmas

Fabio.

Type in ToolbarReset and restart Rhino. That should bring it all back.

1 Like

Thank’s for your prompt reply.
It worked.

Bye,

Fabio.