CMD line osnap toggle?

Discussion in 'AutoCAD' started by San'dy, Jan 17, 2005.

  1. San'dy

    San'dy Guest

    Is there a command line OSNAP toggle to turn it on/off, to replace F3?
    Thanks,
     
    San'dy, Jan 17, 2005
    #1
  2. Read up on the OSMODE system variable. Changing its value be 16384 is
    equivalent to pressing F3 (adding it if OSMODE is less than that turns
    running Osnap off without changing the combination of settings, subtracting
    it if it's more than that turns running Osnap on). You can toggle it with
    something like this:

    (if (> (getvar "OSMODE") 16383)
    (setvar "OSMODE" (- (getvar "OSMODE") 16384))
    (setvar "OSMODE" (+ (getvar "OSMODE") 16384))
    )
     
    Kent Cooper, AIA, Jan 17, 2005
    #2
  3. San'dy

    San'dy Guest

    Got it, I saw that part but did not know that is how I wanted to approach
    it.
    Thanks,
     
    San'dy, Jan 17, 2005
    #3
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.