Making Custom Shortcut Keys to set custom layers as current

Making Custom Shortcut Keys to set custom layers as current

messig
Explorer Explorer
895 Views
2 Replies
Message 1 of 3

Making Custom Shortcut Keys to set custom layers as current

messig
Explorer
Explorer

Hi Everyone,

I am working on improving our drafting workflow using custom keyboard shorcuts to manipulate layers. I already have made ones to turn our custom layers on and off like so: 

Made a custom command called "SymbolsON" with the macro "^C^C-layer;on;1_CFSE_ruff_Symbols;;" and assigned it the key combination of 'Shift+1'

This works just fine, but now I need to make a shortcuts that make our custom layers current so I can quickly change between them without using the pull down menu.

If I type "-layer" (enter) "set" (enter) "1_CFSE_ruff_Symbols" into the command line it works fine so I made a new command called "MakeSymbolsCurrent" with the macro "-layer;set;1_CFSE_ruff_Symbols::" and assigned it the key combination of 'Shift+U'

Here's what I don't understand: The first time I hit 'Shift+U' it brings up the CUI pop up and regardless if I click 'OK' or 'Cancel' it switches the current layer to the one. After the first time it gives an 'invalid option keyword' error after          -LAYER. 

If I go back and open the CUI and highlight my custom "MakeSymbolsCurrent" command, then click ok it will repeat the process of opening the CUI pop up window if I press the assigned shortcut. 

I'm using Autocad LT 2018 on Windows 10 if that matters. I have also attached two screen captures. 

Can anyone help?! This doesn't make sense to me. 

Thanks!

 

0 Likes
896 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant

@messig wrote:

.... I made a new command called "MakeSymbolsCurrent" with the macro "-layer;set;1_CFSE_ruff_Symbols::" ....


Welcome to these Forums!

Those should be semicolons.

Kent Cooper, AIA
0 Likes
Message 3 of 3

messig
Explorer
Explorer

Oops, sorry that was a typo on the forum post. They are in fact semicolons in my macros. Interesting addition: I restarted AutoCAD, tried it again and it worked maybe a half-dozen times then went back to its old tricks.. I am baffled. 

0 Likes