Setting up hotkeys.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am confused. I do not understand the reasons why I cannot set up hotkeys.
In the screenshot below you can see that the Shortcut Keys folder is empty. I can only add new Temporary overrides.
If I assign something in Temporary override to Shift+q or Shift+1. I get text in the command line and not the command execution!
But this contradicts all the tutorials that I watch on YouTube.
I want to switch between two modes:
F9 SNAPMODE - Snap to drawing grid
F3 OSNAP
Chatgpt wrote me a script for this:
(defun c:toggleSnapModes ()
(if (= (getvar "OSMODE") 0)
(progn
(setvar "OSMODE" 167)
(setvar "SNAPMODE" 0)
(princ "\nObject Snap ON , Snap Mode OFF.")
)
(progn
(setvar "OSMODE" 0)
(setvar "SNAPMODE" 1)
(princ "\nObject Snap OFF., Snap ModeON.")
)
)
(princ)
)
How can I assign this script to run when pressing Shift+q