AutoCAD for Mac Forum
Welcome to Autodesk’s AutoCAD for Mac Forums. Share your knowledge, ask questions, and explore popular AutoCAD for Mac topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing hotkeys for ortho and osnap [AutoCAD for Mac]

22 REPLIES 22
SOLVED
Reply
Message 1 of 23
sergio.ki
8909 Views, 22 Replies

Changing hotkeys for ortho and osnap [AutoCAD for Mac]

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.

 

@sergio.ki 

The topic title has been edited to improve findability by @alina.balkanskaia. Original: Changing hotkeys for ortho and osnap

22 REPLIES 22
Message 2 of 23
maxim_k
in reply to: sergio.ki

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


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 3 of 23
sergio.ki
in reply to: maxim_k

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.

Message 4 of 23
maxim_k
in reply to: sergio.ki

Yes, it is possible, but not so simple as in PC version of AutoCAD. You can find basic instructions here:
http://macacad.wordpress.com/2010/12/20/edit-and-create-shortcuts-in-autocad-for-mac-yes-it-is-possi...

If such customization seems difficult to you, I can help you: just let me know your version of AutoCAD and shortcuts you want to assign to ORTHO and OSNAP.

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 5 of 23
pendean
in reply to: sergio.ki

Lisp to toggle Ortho and Osnap on and off not an option Maxim?
Message 6 of 23
maxim_k
in reply to: pendean

Hi Dean,
>>Lisp to toggle Ortho and Osnap on and off not an option Maxim?

I think - no. The OP needs transparent toggle, which will work inside commands, plus he wants one key toggle (seems impossible except F-keys, but they already occupied with Mac functions and OP wants to have them intact).

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 7 of 23
pendean
in reply to: sergio.ki

I was thinking of something like this, abbreviate or click a button on screen or sticky key combo: http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/transparent-toggle-ortho-on-off/td-p/...
Message 8 of 23
maxim_k
in reply to: pendean

>abbreviate or click a button on screen or sticky key combo

Yes, but OP wants one key on keyboard, and even if use custom Lisp and kye combination, you need to edit CUI file "by hand" on Mac in order to assign it to the key combination.

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 9 of 23
sergio.ki
in reply to: maxim_k

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.

Message 10 of 23
maxim_k
in reply to: sergio.ki

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


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 11 of 23
sergio.ki
in reply to: maxim_k

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!

 

Message 12 of 23
maxim_k
in reply to: sergio.ki

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


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 13 of 23
sergio.ki
in reply to: maxim_k

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!

Message 14 of 23
maxim_k
in reply to: sergio.ki

You are welcome!
🙂

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 15 of 23
ericgarlez
in reply to: sergio.ki

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

Message 16 of 23
maxim_k
in reply to: ericgarlez

This is not useful, because the video is about AutoCAD for PC, and here is AutoCAD for Mac Forum.
In AutoCAD for Mac there is no tools for direct customization of shortcut keys.

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 17 of 23
pmalabuyo
in reply to: sergio.ki

I just thought of this. I binded the keystrokes to my gaming mouse with extra buttons. 

Message 18 of 23

CAN YOU PLEASE HELP ME PUT OSNAP ON SHIFT-A AND ORTHO SHIFT S ??

Message 19 of 23
cadffm
in reply to: SetThreeArchitects

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 -
Message 20 of 23
pendean
in reply to: cadffm

@cadffm they probably got here through a link on the web, it happens: @SetThreeArchitects seems to be having a meltdown in the AutoCAD forum where they normally post, they might just need some space.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost