OSNAP

Discussion in 'AutoCAD' started by Uros LESJAK, Apr 21, 2004.

  1. Uros LESJAK

    Uros LESJAK Guest

    Hy!

    How to set up AutoCAD 2002/2004/2005 to turn OFF the OSNAP automaticly when
    ZOOM/Windows command is used?

    Thx,
    Uros LESJAK,
    SI-Europe.
     
    Uros LESJAK, Apr 21, 2004
    #1
  2. You could define a lisp routine to use for Zoom/Windows:

    (defun c:zw ()
    (setvar "osmode" 0)
    (command ".zoom" "w")
    (princ))

    This will turn off osnap, then execute a zoom/window.

    Mitch Thompson
    http://autopanelboard.home.insightbb.com/home.html
    Electrical Panel schedule software for use with AutoCAD
     
    Mitch Thompson, Apr 22, 2004
    #2
  3. This is not a good suggestion. I'd suggest to set the systemvariable
    OSNAPCOORDS to 1 or to 2 (it must not be 0).

    Juergen
     
    Jürgen Palme, Apr 22, 2004
    #3
  4. Uros LESJAK

    bob.at Guest

    .... and it would be nice to restore the original osnap after finishing the command:

    (defun c:zw ()
    (setq os (getvar "osmode"))
    (setvar "osmode" 0)
    (command ".zoom" "w" pause pause)
    (princ "\ntet")
    (setvar "osmode" os))
     
    bob.at, Apr 22, 2004
    #4
  5. When did they start that variable?
     
    Michael Bulatovich, Apr 22, 2004
    #5
  6. Ok, I stand corrected. I mean OSNAPCOORD - this is known since Rel. 14
    ;-)
    Sorry for the confusion

    Juergen
     
    Jürgen Palme, Apr 24, 2004
    #6
  7. I *wasn't* correcting you Juergen. I had never heard of either of them
    before ; )
     
    Michael Bulatovich, Apr 24, 2004
    #7
  8. May be you know this:
    Preferences | User Preferences | Priority for coordinate Data Entry
    (Running object snap or Keyboard entry or Keyboard entry except
    scripts). This is another way to set OSNAPCOORD to 0, 1 or 2.

    Juergen
     
    Jürgen Palme, Apr 25, 2004
    #8
  9. Uros LESJAK

    Uros LESJAK Guest

    The variable just set "by its self", my custmer said. ;-)

    THX, for help!
     
    Uros LESJAK, Apr 28, 2004
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.