Hello,
I didn't manage to find a solution for my problem in the other threads.
I basically want to change the hotkeys for the ortho and the osnap to something different from a function key.
I know that by default they can be toggled by pressing fn+F8 and fn+F3; I also know I can turn on "Use F1, F2 ... as Function keys" in Keyboard pane of System Preferences. However I want to set two "letters" (such as q and w) as shortcuts for these two functions because I want to press only 1 key both while using autocad and while using the volume/brightness commands of my macbook.
Thank you.
@Anonymous
The topic title has been edited to improve findability by @alina.balkanskaia. Original: Changing hotkeys for ortho and osnap
Solved! Go to Solution.
Solved by maxim_k. Go to Solution.
Welcome to the Autodesk Forums!
Hi,
You can not use single letter shortcut to toggle ORTHO and OSNAP, because AutoCAD recognizes letter(s) input only as commands.
But you can use combination of letters and special keys (Control, Command, Shift)
The default shortcut for ORTHO is Command+L, but you can also use Control+L, or even more complex such as Shift+Control+O or Shift+Command+O.
To toggle OSNAP mode on and off you can use Control+F or Shift+Control+F shortcuts.
Maxim
Thank you for replying so quickly.
It's a pity there is no way to set a shortcut of just one key, without changing the settings of the keyboard for all the applications and the whole operative system.
I think it would really improve the productivity while using Autocad on a Mac.
Anyway, is there a way to change the default shortcut for ortho? Cmd+L is ok, but if I can set a shortcut on the left side of the keyboard it would allow me to keep my right hand on the mouse and the left hand where all my aliases are.
Thanks again.
Hello and thank you very much for your suggestions.
Since I don't know what is and how to use Lisp, I tried Maxim's way.
I managed to change the shortcut for Ortho, but it seems that Osnap can't be changed, even if I do exactly the same thing I did for the Ortho.
Here is what I did:
Since I wasn't able to find the names of the macros in the MenuGroup.cui file, I simply used the search function of Textedit to find the two functions in the AcceleratorRoot.cui file. I searched:
accKeys="CMD" AccelChar="L" to find ORTHO and
accKeys="CTRL" AccelChar="F" to find OSNAP.
Then, I replaced them with:
accKeys="SHIFT" AccelChar="W" and
accKeys="SHIFT" AccelChar="Q".
I also tried CMD+2 and CMD+1, then ALT+W and ALT+Q, then ALT+2 and ALT+1...
Every time I managed to correctly set the Ortho, but the Osnap still does not work. I suspect I am changing the wrong string for the snap function.
Hi,
You can not use SHIFT or ALT with letter or number for creating shortcut, for example shortcuts:
ALT+W or SHIFT+W are both invalid (ALT+W will case to print ∑ at the command prompt and SHIFT+W will just type W in upper case)
So you need to construct shortcuts with CTRL+"some letter or number" or CMD+"some letter or number", or you need to use 3 keys shortcuts with SHIFT or ALT keys, such as SHIFT+CMD+R
About toggling OSNAP mode - you can use "MM_1633", "MM_1625" or "MM_1633" for the reference to menu macro to toggle OSNAP on and off.
So, for example if you want to have CTRL+1 shortcut to toggle OSNAP, you can find these strings in AcceleratorRoot.cui file:
<MenuAccelerator UID="MA_0220">
<ModifiedRev MajorVersion="16" MinorVersion="2" UserVersion="0" />
<Accelerator>
<KeyCombo accKeys="CTRL" AccelChar="1" bUseVirtual="false" />
<MenuItem>
<MacroRef MenuMacroID="ID_Modify" />
</MenuItem>
</Accelerator>
and substitute "ID_Modify" with "MM_1633":
<MenuAccelerator UID="MA_0220">
<ModifiedRev MajorVersion="16" MinorVersion="2" UserVersion="0" />
<Accelerator>
<KeyCombo accKeys="CTRL" AccelChar="1" bUseVirtual="false" />
<MenuItem>
<MacroRef MenuMacroID="MM_1633" />
</MenuItem>
</Accelerator>
Maxim
Thank you very much.
I was thinking it was possible to use both shift and alt since they were working with the ORTHO!
Anyway, I managed to set both OSNAP and ORTHO to CMD+1 and CMD+2.
Do you know if there is a similar way to change the command FROM, used to set a temporary base point when drawing a polyline or stretching an object? (this is a little OT, I can open a new thread if necessary).
Thanks again!
Not a big problem, you just need to find shortcut combination suitable for you.
Menu macro for "From" object snap is "ID_Tracking".
So code in AcceleratorRoot.cui file will look for example like this:
<MenuAccelerator UID="MA_0222">
<ModifiedRev MajorVersion="18" MinorVersion="1" UserVersion="0" />
<Accelerator>
<KeyCombo accKeys="CTRL" AccelChar="3" bUseVirtual="false" />
<MenuItem>
<MacroRef MenuMacroID="ID_Tracking" />
</MenuItem>
</Accelerator>
Maxim
Thank you, you helped me a lot!
By the way, I was looking for the macro "ID_From" not the "ID_Tracking", but I managed to find it thanks to your hint.
Thanks again, I think I'll improve a lot my performance while drawing with Autocad for Mac with these three shortcuts!
It's been a long time but i found this very useful for this topic. Hope it works for you: https://www.youtube.com/watch?v=EK5ozkDl730&list=SPB30635C4533065FC&index=12
You are Using AutoCAD for MAC, really?
Because you posting here in the MAC Forum, but in the past you posted in the Autocad (for Windows) board.
Sebastian
Can't find what you're looking for? Ask the community or share your knowledge.