Keyboard shortcut question

Keyboard shortcut question

Bas.degroot1
Observer Observer
727 Views
4 Replies
Message 1 of 5

Keyboard shortcut question

Bas.degroot1
Observer
Observer

I want to change the keyboard shortcut to switch to previous or next tab in current drawing from Ctrl + pageUp/pageDown to Ctrl + (shift) + Tab as I want to be able to change from layout to model and back with just a single hand instead of having to look for the page up/down buttons on my keyboard. How can I do that?

0 Likes
728 Views
4 Replies
Replies (4)
Message 2 of 5

tramber
Advisor
Advisor

Could not figure out how to configure shortcuts your way because these shortcuts are not in the CUI command.

But i can just give you the variable TILEMODE. It is possible a button to toggle but from 0 to 1 and reverse, you can go to model or space with the keyboard....

 


EESignature

Message 3 of 5

ВeekeeCZ
Consultant
Consultant

1) Ctrl+PageUp/Down assignments cannot be changed.

2) You cannot assign anything To Ctrl(+Shift)+Tab

3) You can create a command (LISP) that does what you want and that could be assigned to plenty of other assignable keyboard shortcuts - Say Ctrl+Alt+A/S? Not simple but doable.

0 Likes
Message 4 of 5

TomBeauford
Advisor
Advisor

I added a CTRL+T shortcut key to toggle TILEMODE which will toggle between the current layout and the Model tab. Handy if you have a lot of layouts as it remembers which layout to go back to. The shortcut Key macro is: 

^C^C^P(ai_onoff "tilemode") Regen ^P


Name it Tilemode, use "Toggle between Model tab and previous layout." as the Description, and use CTRL+T for the Access Key which is easy to remember for Tilemode and isn't already being used. From version 2017 on there's a right click option on tabs to "Activate Model Tab" or "Activate Previous Layout" and the Model tab is always visible but using Ctrl+T is still much quicker.
Posted previously with other tips at:
https://www.cadtutor.net/forum/topic/550-contribute-a-tip-become-famous/page/17/#comment-567790

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
0 Likes
Message 5 of 5

Sea-Haven
Mentor
Mentor

This is not a swap but is closer to what you want Goto.lsp as the name implies go to any layout, if you enter 0 you will go to Model. Any other number will take you to corresponding layout tab can do 99 for last. Used with 88 layouts.

 

You could make say a defun with "0" as name to jump to "Model" just need to edit the code to suit. Remove the dcl part Multi getvals.

 

Felt generous

 

; jump to model space 
; By AlanH Mar 2022

(defun c:0 ( / lay alllayouts)
(setq alllayouts (vla-get-Layouts (vla-get-activedocument (vlax-get-acad-object))))

(vlax-for lay alllayouts
  (if (= 0 (vla-get-taborder lay))
    (setvar "ctab" (vla-get-name lay))
  )
)

(princ)
)

 

 

 

0 Likes