I found a simple LSP routine to make an easy shortcut for Mid Between Two Points OSnap override during commands. It was:
(defun c: ()
(princ "_mtp")
)
Then when I drew a line, pasted an object, etc, during the command I typed in '' (two apostrophes, not a single quotes) and it would enter "_mtp" for me, thus a much quicker entry than running my hand all over the keyboard. It worked in Autocad 2007 and 2008. It does not work on Autocad 2010 or 2011. Did anything change with AutoLISP in the Autocad 2010+ releases?
"_m2p" and "_mtp" are the same thing. The issue is getting it to work. I used to be able to use this LSP routine in AutoCAD 2007-08 and during a command could press "apostrophe-apostrophe" and it would snap to Mid Between 2 Points.
I typed this into AutoCAD 2010:
(defun c: ()(princ "_m2p"))
The command line showed:
C:
So the routine was loaded, but the command still doesn't work. Patchy, did you load a .lsp file with exactly that in it?
Is there a lsp setting in ACAD that I'm missing maybe?
I copied and pasted the code you posted into the command line of 2010, typed double ' marked and it works as short cut of m2p.
(defun c: ()
(princ "_mtp")
)
Dang. It's not working. I'm actually on AutoCAD 2011, but it should be the exact same, because AFAIK they didn't change anything between 10 and 11. Oh well. I changed the CTRL+Click to be this command. As it is, my SHIFT+Click and CTRL+SHIFT+Click commands are not working. Sometimes I'm astounded by how things don't work on one computer but do on another.