Acad 2002 - Toggle fillmode with button

Discussion in 'AutoCAD' started by Fieldguy, Sep 28, 2004.

  1. Fieldguy

    Fieldguy Guest

    How do I define a button that will toggle FILL mode; if it is on turn it
    off, if it is off turn it on, then regen?
     
    Fieldguy, Sep 28, 2004
    #1
  2. (setvar "FILLMODE" (boole 6 1 (getvar "Fillmode")));regen


    HTH
    Juergen
     
    Jürgen Palme, Sep 28, 2004
    #2
  3. Fieldguy

    Paul Turvill Guest

    ^C^C(setvar "fillmode" (- 1 (getvar "fillmode")));regen
    ___
     
    Paul Turvill, Sep 28, 2004
    #3
  4. Fieldguy

    Fieldguy Guest

    Awesome. Thank you very much.

     
    Fieldguy, Sep 28, 2004
    #4
  5. Fieldguy

    Fieldguy Guest

    Thank you. A bit different (just enough to be interesting). What is ^C^C
    for? Is it transparency, or cancel active command?
     
    Fieldguy, Sep 28, 2004
    #5
  6. Yes
     
    Jürgen Palme, Sep 28, 2004
    #6
  7. Fieldguy

    Fieldguy Guest

    Thanks again, both of you. I'm using (- 1 (getvar "Fillmode")) because I
    can't remember exclusive or.
     
    Fieldguy, Sep 28, 2004
    #7
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.