TheSwamp
CAD Forums => CAD General => Topic started by: CatDance on May 05, 2020, 04:20:54 AM
-
How to make Ctrl-c = cancel command ?
I try to replace Ctrl-c = "Copyclip" to c^c^ (in the CUI) but it only do a soft cancel ie. when selected gripmodes on screen, it won't do a hard cancel by removing selected gripmode. Only pressing Esc key do a hard cancel.
I am used to pressing Ctrl-c as my fingers are nearer to Ctrl key.
Thanks.
-
How about something like this:
IMO redefining OOTB commands is bad practice.
-
If Copyclip is set to C^C^, then QAFLAGS must be set to 1 to drop the grips.
-
How about something like this:
IMO redefining OOTB commands is bad practice.
Ok, Ron.... I will not redefine the "OOTB" commands (what is a OOTB ?? :embarrassed:)
-
If Copyclip is set to C^C^, then QAFLAGS must be set to 1 to drop the grips.
Ok wiz I will try this.
-
If Copyclip is set to C^C^, then QAFLAGS must be set to 1 to drop the grips.
Thanks, Wiz. It worked.
-
CatDance, please have also a research of what the qaflags do to other commands and as Ronjonp advised, consider to leave the default commands untouched.
-
(what is a OOTB ?? :embarrassed:)
Out Of The Box?
-
While I wouldn't advise ever modifying the acadXXXXdoc.lsp version specific lisp file that comes with each version most of the functions defined there have been around for many years. and are always available. I've used ai_onoff for toggling system variables in CUI macros. It was used in installed MNU files a quarter century ago.
;;; Shortcut menu Deselect All item.
(defun ai_deselect ()
(if (= (getvar "cmdecho") 0) ;start if
(command "_.select" "_r" "_all" "")
(progn ;start progn for cmdecho 1
(setvar "cmdecho" 0)
(command "_.select" "_r" "_all" "")
(setvar "cmdecho" 1)
) ;end progn for cmdecho 1
) ;end if
(terpri)
(prompt "Everything has been deselected")
(princ)
)
;;; Command version of ai_deselect to be called from the CUI
;;; so it gets properly recorded by the Action Recorder
;;;
(defun c:ai_deselect ()
(ai_deselect)
(princ)
)
ai_deselect works no matter the situation in AutoCAD products.
-
How to make Ctrl-c = cancel command ?
I try to replace Ctrl-c = "Copyclip" to c^c^ (in the CUI) […]
That's one CANCEL: Try ^c^c