Map Osnap toggle (F3 to Alt + F8

Discussion in 'AutoCAD' started by Allen Jessup, Nov 5, 2004.

  1. Allen Jessup

    Allen Jessup Guest

    I'm trying to Map the Osnap Toggle "F3" to "Alt + F8". I know that (setvar
    "osmode" (boole 6 (getvar "osmode") 16384)) will do it. But I can't figure
    out how to map it to Alt + F8. I want to leave F3 as the Osnap toggle also
    if possible.

    The reason I want to do this is that I have a button on my trackball set to
    F8. If I can map the Osnap toggle to Alt+F8 I can control both the Ortho
    toggle and the Osnap toggle from my trackball.

    TIA

    Allen Jessup
    Rockland County Highway Dept.
    New City, NY
    http://www.co.rockland.ny.us/Highway/default.htm
    IBM IntelliStation - 3.2 GHz. - 3GB RAM
    NVidia Quardro FX 3000 w/256MB RAM
    Land Desktop 2005
     
    Allen Jessup, Nov 5, 2004
    #1
  2. Allen Jessup

    Tom Smith Guest

    Accelerators section of menu?
     
    Tom Smith, Nov 5, 2004
    #2
  3. Allen Jessup

    Dommy2Hotty Guest

    Open the ACAD.MNS, go to the Accelerators section (bottom of the file) and highlight the [ALT+"F8] line and paste the following over it...
    Code:
    [ALT+"F8"](setvar "osmode" (boole 6 (getvar "osmode") 16384));
     
    Dommy2Hotty, Nov 5, 2004
    #3
  4. that is slick...adding duel functionality to buttons like that, very nice

    "Allen Jessup" <>
    |>I'm trying to Map the Osnap Toggle "F3" to "Alt + F8". I know that (setvar
    |>"osmode" (boole 6 (getvar "osmode") 16384)) will do it. But I can't figure
    |>out how to map it to Alt + F8. I want to leave F3 as the Osnap toggle also
    |>if possible.
    |>
    |>The reason I want to do this is that I have a button on my trackball set to
    |>F8. If I can map the Osnap toggle to Alt+F8 I can control both the Ortho
    |>toggle and the Osnap toggle from my trackball.
    |>
    |>TIA
    |>
    |>Allen Jessup
    |>Rockland County Highway Dept.
    |>New City, NY
    |>http://www.co.rockland.ny.us/Highway/default.htm
    |>IBM IntelliStation - 3.2 GHz. - 3GB RAM
    |>NVidia Quardro FX 3000 w/256MB RAM
    |>Land Desktop 2005
    |>

    James Maeding
    jmaeding at hunsaker dot com
    Civil Engineer/Programmer
     
    James Maeding, Nov 8, 2004
    #4
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.