Cycle Current Layer up or down the Layer List

Cycle Current Layer up or down the Layer List

Anonymous
Not applicable
837 Views
2 Replies
Message 1 of 3

Cycle Current Layer up or down the Layer List

Anonymous
Not applicable

Hello,

 

I'm trying to figure a way to switch the current layer up/down the layer list by 1 layer, in attempt to bind a lisp or macro to Page Up and Page Down keys on my keyboard.

 

Does anyone have a lisp built for handling something like this? Autocad doesn't seem to have anything built in to acheive this.

 

And I've tried binding marcos to my keyboard keys via the keyboard software (Razer) and using ALT+H etc. but since I use the menu bar it doesn't get to the ribbon to hit the Home tab. (Idea was to bind a macro for Alt+H, LA, Up Arrow, ESC)

Accepted solutions (1)
838 Views
2 Replies
Replies (2)
Message 2 of 3

rushabhthakkar_910
Advisor
Advisor
Accepted solution

Here's a version with the same command names that bypasses any Frozen Layer(s), and notifies the User if it has done so.  It notifies the User of the new current Layer in any case [even though that will also be apparent in the Layer indicator in the Ribbon or Properties box or Layer pulldown].

Thanks and Regards,


Rushabh Thakkar.


Please use the Accept Solution button to mark any posts that provide the answer or solution. 


Likes are always welcome.


LinkedIn | Instagram | Facebook.      


                        


 


 

Message 3 of 3

Kent1Cooper
Consultant
Consultant

As the author of that routine, I would direct you to >where it came from<, in case there's anything else on the thread that you may find useful or informative.

Kent Cooper, AIA