Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Osnap Lisp routine

Status
Not open for further replies.

summajet

Technical User
Jan 5, 2005
33
US
Does anyone know of a lisp routine that will allow you to use hot keys instead of having to type end or pick the endpoint button? I would appreciate any suggestions.
Thanks
 
You might want to assign snaps to function keys, or "control+key" combinations. Do this by editing your acad.mns file in the **ACCELERATORS** section. For example to make the "F12" the endpoint snap add the following line:

["F12"]_endp


then restart AutoCAD to have changes take effect, or use the "menu" command and reload acad.mns.
 
I have the following "hot keys" programmed in a lisp routine that gets automatically loaded
(defun C:LI () (command "LINE""QUICK,INT")(prin1))
(defun C:LE () (command "LINE""QUICK,END")(prin1))
(DEFUN C:LQ () (COMMAND "LINE""QUICK,QUAD")(PRIN1))
(defun C:LM () (command "LINE""QUICK,MID")(prin1))
(defun C:LN () (command "LINE""QUICK,NEA")(prin1))
(defun C:LC () (command "LINE""QUICK,CEN")(prin1))

Make sure that the combinations do not interfere with command you already currently use
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top