Author Topic: Object Snap keyboard overide  (Read 5862 times)

0 Members and 1 Guest are viewing this topic.

cparnell

  • Guest
Object Snap keyboard overide
« on: November 10, 2005, 08:41:35 AM »
A2K6

I'm in a mess, going back to A2K I have always assigned the number keys at the top of my keyboard to my object snaps.

["1"]_CEN
["2"]_ENDP
["3"]_INT
["4"]_MID
["5"]_NODE
["6"]_PERP
["7"]_QUA
["8"]_TAN
["9"]_nea
["0"]_appint

in my ACAD.mnu file. Doing this would allow me to override my osnap mode to use the OSnap assigned to this key. Now in A2K6, I have been unable to migrate these settings over to my main CUI file. I was told on the AutoDESK discussion forum that A2K6 will not allow anything to be assigned to the number keys at the top of the keyboard.

I am lost, using shift right click slows me down, and using icons slows me down. Is there any way to assign OSnaps to my number keys at the top of my keyboard like I am accustomed to?

I guess that I'm hoping that LISP will do the trick, but I just don't know much about LISP. Just about all I know is from a class that Robert Green taught at AUGI camp in Birmingham, AL a month or so ago.

I am LOST.

LE

  • Guest
Re: Object Snap keyboard overide
« Reply #1 on: November 10, 2005, 10:49:57 AM »
Hi,

I don't have AutoCAD 2006.....

So is not there anymore the section ?:

***ACCELERATORS

Where you were able to place something like these ?:


["NUMPAD4"]_nea
["NUMPAD5"]_endp
["NUMPAD6"]_perp
["NUMPAD7"]_int
["NUMPAD8"]_mid
["NUMPAD9"]_qua
["NUMPAD1"]_nod
["NUMPAD2"]_cen
["NUMPAD3"]_ins

Chuck Gabriel

  • Guest
Re: Object Snap keyboard overide
« Reply #2 on: November 10, 2005, 10:57:02 AM »
I hesitate to mention it, because the currently available version is somewhat broken, but HotKeys will allow you to create keyboard shortcuts like what you are looking for.

http://home.carolina.rr.com/hotkeys

I am told the 2004 version works in AutoCAD 2006.

Once it is installed and you have created a keys definition file with the editor, you will need to type KEYSCONFIG at the command line and use the browse button to select your keys definition file (that's the broken part).

Good luck.

Hangman

  • Guest
Re: Object Snap keyboard overide
« Reply #3 on: November 10, 2005, 01:56:41 PM »
I had the guys here help me put together a lisp that'd do what your looking for.
Here it is if your interested.
Code: [Select]
;;Written by Hangman    August, 2005
;;
;;This is a Running OSnap Toggle macro lisp
;;
;;  1  ENDpoint
;;  2  MIDpoint
;;  3  CENter
;;  4  NODe
;;  5  QUAdrant
;;  6  INTersection
;;  7  INSertion
;;  8  PERpendicular
;;  9  NEArest
;;  0  OFF
;;
;;
;;

(DEFUN C:1 ()
  (SETVAR "OSMODE" (BOOLE 6 (GETVAR "OSMODE") 1)); on/off
  (princ)
)
;;
(DEFUN C:2 ()
  (SETVAR "OSMODE" (BOOLE 6 (GETVAR "OSMODE") 2)); on/off
  (princ)
)
;;
(DEFUN C:3 ()
  (SETVAR "OSMODE" (BOOLE 6 (GETVAR "OSMODE") 4)); on/off
  (princ)
)
;;
(DEFUN C:4 ()
  (SETVAR "OSMODE" (BOOLE 6 (GETVAR "OSMODE") 8)); on/off
  (princ)
)
;;
(DEFUN C:5 ()
  (SETVAR "OSMODE" (BOOLE 6 (GETVAR "OSMODE") 16)); on/off
  (princ)
)
;;
(DEFUN C:6 ()
  (SETVAR "OSMODE" (BOOLE 6 (GETVAR "OSMODE") 32)); on/off
  (princ)
)
;;
(DEFUN C:7 ()
  (SETVAR "OSMODE" (BOOLE 6 (GETVAR "OSMODE") 64)); on/off
  (princ)
)
;;
(DEFUN C:8 ()
  (SETVAR "OSMODE" (BOOLE 6 (GETVAR "OSMODE") 128)); on/off
  (princ)
)
;;
(DEFUN C:9 ()
  (SETVAR "OSMODE" (BOOLE 6 (GETVAR "OSMODE") 512)); on/off
  (princ)
)
;;
(DEFUN C:0 ()
  (SETVAR "OSMODE" 0); off
  (princ)
)

ELOQUINTET

  • Guest
Re: Object Snap keyboard overide
« Reply #4 on: November 10, 2005, 02:37:37 PM »
have you looked at temporary override keys? i keep most of mine on all the time but use shift+i for insert and a couple others i use infrequently.

ELOQUINTET

  • Guest
Re: Object Snap keyboard overide
« Reply #5 on: November 10, 2005, 02:40:37 PM »
hangman, does yours revert settings to previous after overriding?

cparnell

  • Guest
Re: Object Snap keyboard overide
« Reply #6 on: November 10, 2005, 04:58:37 PM »
Hangman:

Thank you very much for your help, it is greatly appreciated.
I tried your routine and loaded it via appload. However when I press the number keys with out a command active, it turnes that OSnap off. When I start a command like pline, pressing 1 gives me unit in length.

Eloquintet:

I have tried using the temporary override keys. I realize that you have to hold shift+e and hold them to get end point to work, but I have only had them work on occasion. Many times I get EEEEEEEEEEEEEEEEEEEEEEEEEE's across my screen.

LE:

The only thing that I have been able to get the A2K6 CUI to accept for a command to override OSnaps is SHIFT+ something. Acutally SHIFT+1 is SHIFT+!.

Chuck:

I will look into your suggestion.

Thanks for your help guys, any other ideas.
Code: [Select]
Code: [Select]
Code: [Select]

ELOQUINTET

  • Guest
Re: Object Snap keyboard overide
« Reply #7 on: November 11, 2005, 12:25:59 PM »
i've experienced that too from time to time. maybe the override only works in certain situations. so you really want to toggle the said osnap off not on, right?

cparnell

  • Guest
Re: Object Snap keyboard overide
« Reply #8 on: November 11, 2005, 12:49:26 PM »
We have purchased out first AutoDESK Subscription, so I contacted them in regards to this problem. I attached some of the responce from AutoDESK.
Why in the world would they keep the number keys from being used. For me being right handed it is the ideal place, plus they are close to the Esc key.

Thanks for all of the input.

ELOQUINTET

  • Guest
Re: Object Snap keyboard overide
« Reply #9 on: November 14, 2005, 09:51:30 AM »
old habits are hard to change. i've gotten used to using a combo of control right click and keyboard overrides

Sdoman

  • Guest
Re: Object Snap keyboard overide
« Reply #10 on: November 14, 2005, 03:07:44 PM »
I program my osnaps into a keypad that sits next to my standard keyboard.  If you are interested, check out Xkeys.com




cparnell

  • Guest
Re: Object Snap keyboard overide
« Reply #11 on: November 14, 2005, 03:10:17 PM »
sdoman:

Thanks for the input. I'll have to look into that.

Sdoman

  • Guest
Re: Object Snap keyboard overide
« Reply #12 on: November 14, 2005, 03:13:53 PM »
sdoman:

Thanks for the input. I'll have to look into that.

Why that's a PUN!  :lol:

My Xkeys has spoiled me rotten.  I can't run AutoCAD without it

cparnell

  • Guest
Re: Object Snap keyboard overide
« Reply #13 on: November 14, 2005, 03:16:40 PM »
I know what you mean. I am lost with out my number keys.
For some reason, the OSanps don't seem to operate as well as in the past versions.

Sdoman

  • Guest
Re: Object Snap keyboard overide
« Reply #14 on: November 14, 2005, 03:25:36 PM »
I know what you mean. I am lost with out my number keys.
For some reason, the OSanps don't seem to operate as well as in the past versions.

I purchased my Xkeys five or six years ago.  Best $99 I ever spent towards my career (the price hasn't changed).  Got mine at Fry's electronics.

Don't know what you mean about Osnaps not operating as well.  They work fine here, in fact better then in prior versions.