Continue to Site

Welcome to 3DCADForums

Join our CAD community forums where over 25,000 users interact to solve day to day problems and share ideas. We encourage you to visit, invite you to participate and look forward to your input and opinions. Acrobat 3D, AutoCAD, Catia, Inventor, IronCAD, Creo, Pro/ENGINEER, Solid Edge, SolidWorks, and others.

Help needed in adding a button to a toolbar?

Calista3783

New member
I have the "Layers II" toolbar active, and I would like to add a button that will invoke to "LAYON" command, that will turn all layers on. Seems to me they would have included this button by default, but if it exists, I can't find it. I have been attempting to do this with the CUI dialog box with no luck. I don't really want a whole new toolbar, just add a button to an existing one. I am using A2007.
Thanks in advance.
 
Hello Calista3783,

"LAYON" is in the pulldown menus under Format-Layer Tools-Turn All Layers On. It is listed in the CUI command pane as "Turn All Layers On".

Cheers!
 
new button

Right-click on the toolbar to which you'd like to add the button. It doesn't matter which one you click on, but the CUI will open directly to that particular one, saving you the tiny bit of trouble having to scroll to it in the CUI. Unfortunately, I already have made this button, so I'm not sure if it's in the list by default. In the Command List:, search for "Turn All Layers On". If it's there, simply drag it up to the section above where your toolbars are, and fit it between whichever commands you wish. If it's NOT there, click the New button. On the right will be the Properties of "Command1" and you will change the name to Layon, or whatever you like. The Macro is ^C^C_layon . Notice the space between layon and the period. That space acts as an ENTER key. Then you click on Turn All Layers On in the Command list on the left, and at the top right you can choose an icon. I suggest choosing the dark lightbulb, then coloring it yellow, nice & simple. Click Apply to see if it shows up on your toolbar, then OK if all seems well. My apologies if this isn't very clearly written, but I'd be happy to help more if necessary.
 

Articles From 3DCAD World

Sponsor

Back
Top