Rhino 8 : Hide a toolbar with a macro

Hello,

On rhino 7 I used macros to show and hide toolbars.
For example, with the “byRhinoGadget” toolbar

With the macro to show :

! _-Toolbar _Toolbar byRhinoGadget _Show “byRhinoGadget All” _Yes !

And the macro to hide :

! _-Toolbar _Toolbar byRhinoGadget _Show “byRhinoGadget All” _No !

Now, with Rhino 8, it seems to me that we no longer have the option of hiding a toolbar with a macro. Only the !-_ShowToolbar command is available.

I really miss this, I used to use it all the time, especially for big toolbars that take up a lot of space. And I find it really constraining to have to right-click on the toolbar, then click on close, to perform a task I’d assigned to a macro.

1 Like

Hi Matthieu - yep, this is still in the works
RH-77225 Toolbar: Make it scriptable
I added a comment.
-Pascal

1 Like

Thanks Pascal.

RH-77225 is fixed in Rhino 8 Service Release 5 Release Candidate

Thanks for the work.

But it’s not perfectly functional like Rhino 7.
If the toolbar has been docked, the exact docking position is not remembered when the toolbar is recalled.
(Especially when docked next to the Standard bar on the left. At times, our toolbar moves to the right or left of the Standard bar. It should remain on the exact side selected. It does this very well on Rhino 7).
This is a real problem.
What’s more, when a docked toolbar is hidden (Show No), a phantom empty zone remains in place of the toolbar. See my illustration images.
This is a real problem too.


Hello- I see that, thanks.
@Matthieu_SAMSON - are your macros structured like this?

! _-Toolbar Toolbar Enter Show Help Yes EnterEnd

Here, currently, this always opens the toolbar under the cursor, regardless of where it was previusly docked or floating…

-Pascal

@pascal

Here are my macros:

! _-Toolbar _Toolbar byRhinoGadget _Show “byRhinoGadget All” _Yes

! _-Toolbar _Toolbar byRhinoGadget _Show “byRhinoGadget All” _No

No, if toolbars are docked, they’re not open in float mode. In fact, that’s the whole point of this function, which is currently at its best in Rhino 7.

Another thing I just noticed is that the French _Toolbar parameter (Barre d’outils) of the -_Toolbar command does not work we have to enter the command in English for it to work.
Below is a screenshot to illustrate :

Hi Matthieu - thanks for the heads-up for the french command line option. Clearly a lot of errors in there.
RH-80914 Toolbar: Dash version command line options in French

-Pascal