change Layer without mouse

change Layer without mouse

jorgearone_inssitu
Enthusiast Enthusiast
557 Views
7 Replies
Message 1 of 8

change Layer without mouse

jorgearone_inssitu
Enthusiast
Enthusiast

Very good to everyone
I've been wondering if there might be a lisp that can change my layer (with the keyboard, because with the mouse it's very cumbersome sometimes). It would be like going to the next layer in the list, successively until stopping at the desired layer.
I currently have multiple layers

jorgearone_inssitu_0-1690472387911.png

 


As I work by filters by property, there would not be many within the same group

jorgearone_inssitu_1-1690472493326.png

 

But when I have to change the layer, I have to stop everything, look for a button (LAYERS) and look for the layer and click on the desired layer with the mouse.

jorgearone_inssitu_2-1690472559116.png


I think that with the keyboard these processes would be faster

 

0 Likes
558 Views
7 Replies
Replies (7)
Message 2 of 8

LyleHardin
Advisor
Advisor

I advise looking at your Home Ribbon bar. There's a whole slew of Layer commands there. You can pick the layer from a single dropdown instead of using the layer manager. Or you can select a layer to make current just by picking on an entity that is on that layer. 

Or, are you wanting to literally go to the next layer in the layer list by type NL (or something) on the keyboard?

0 Likes
Message 3 of 8

pendean
Community Legend
Community Legend
So you're just asking for the functionality of LAYWALK command for example? Abbreviate to one or two or three letters if you want and not a fan of any already defined shortcut.

And/or are you aware you can also use LAYMCUR to just select an object to make that layer active too? or too can be abbreviate to something you prefer.

Or any of these other commands' abilities you'd like to abbreviate or "lisp" by chance
https://help.autodesk.com/view/ACD/2023/ENU/index.html?guid=GUID-0583B566-FD44-404D-8F95-5271EE39093...
0 Likes
Message 4 of 8

Kent1Cooper
Consultant
Consultant

Will something in >this< topic do what you want, or >here< that it links to?

Kent Cooper, AIA
0 Likes
Message 5 of 8

jorgearone_inssitu
Enthusiast
Enthusiast
Yes, I would literally like to go to the next layer with a lisp, because I have created the layers before and some of them don't exist in the plane yet, so I can't select them.
0 Likes
Message 6 of 8

JBerns
Advisor
Advisor

@jorgearone_inssitu,

 

Do you want to activate the next layer in the layer list based on the A-Z sort order of the Layer Manager's name column?

 

Community correct me if I am wrong, but the internal layer table may not be alphabetically stored as shown in the Layer Manager. In fact, you can sort by any of those columns. "Next layer" is subjective.

 

If "next layer" is based on the name column, then:

  • get the layer name list
  • sort the list
  • get the active layer name
  • find its position in the sorted list
  • get the next item in the list
  • set that item as the active layer

 

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
0 Likes
Message 7 of 8

Kent1Cooper
Consultant
Consultant

@JBerns wrote:

....

Do you want to activate the next layer in the layer list based on the A-Z sort order of the Layer Manager's name column?

....


My L> and L< commands linked to in Message 4 sort them alphabetically, but see the blue comment in Message 8 at the second link, if you want them in Layer-creation order.

Kent Cooper, AIA
Message 8 of 8

komondormrex
Mentor
Mentor

hey,

if you do not mind against compiled codes, you may check this one QA (Quick Layer Assign).

 

0 Likes