Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Toolbar on off

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
289 Views, 3 Replies

Toolbar on off

I'd like to have a button that toggles a toolbar on and off. Currently I have a button that turns a toolbar on and it has a flyout that has a second button that turns if off. Can this be done with a single button that turns the toolbar on and if clicking the same button again will recognize that the toolbar is already on and then turns if off. Can this be done with an "if then" type macro?

 

Thank you

 

I am using Autocad 2011

3 REPLIES 3
Message 2 of 4
pendean
in reply to: Anonymous

Post the code from your two buttons and someone around here will take a stab at it for you.
Message 3 of 4
Anonymous
in reply to: Anonymous

The macro for each button is

 

To show ^C^C-Toolbar;Sprinkler_Toolbar;s;

To hide ^C^C-Toolbar;Sprinkler_Toolbar;h;

 

I have several custom mechanical electrical toolbars that I use and prefer not to have them on screen all the time. I find hiding and showing the ones specific to what I'm currently working on makes the screen less busy. What I have works fine, I'm just trying to streamline it slightly.

 

Thanks

Message 4 of 4
Anonymous
in reply to: Anonymous

I've given this more thought and I think the fact that the toolbars don't have a switch or a 0=off, 1=on or similar command, that an if/then macro would not work.

 

Anyone have any other ideas?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost