+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    h0rsepwr
    Guest

    Default AutoCAD 2006 Isometric Snap

    Registered forum members do not see this ad.

    I had a button in ACAD 2000 I used to switch from regular to iso snap, the command was:

    ^C^C(if (= (getvar "snapstyl") 1) (setvar "snapstyl" 0) (if (= (getvar "snapstyl") 0) (setvar "snapstyl" 1)))(princ)

    however this won't work in 2006. Doesn anyone have anything I could use instead? Thanks.

  2. #2
    Forum Deity
    Using
    not specified
    Join Date
    Jul 2004
    Location
    Anchorage, Alaska
    Posts
    2,074

    Default

    I tried your button code in 2005 and it works. What happens when you try this in 2006? And if you ues a "^P" in front of the lisp code, it won't be echoed on the command line.

  3. #3
    rjt205
    Guest

    Default

    I tried the code in 2006 and it changes to iso snap, but it doesn't change it back. The first time I run it (with cursor in normal position) it changes. When I run it again it seems to return the cursor in the middle of the program, but returns it to iso and gives me a message:
    ; error: extra right paren on input

  4. #4
    Forum Deity
    Using
    not specified
    Join Date
    Jul 2004
    Location
    Anchorage, Alaska
    Posts
    2,074

    Default

    Registered forum members do not see this ad.

    I don't know why you would get that, parentheses look OK. Perhaps 2006 has a problem with spaces in the code? Try the following, which does the same thing with less code and spaces removed:

    Code:
    ^C^C^P(if (=(getvar "snapstyl")1)(setvar "snapstyl" 0)(setvar "snapstyl" 1))(princ)
    Oops, using the "code" button added spaces:
    C^C^P(if (=(getvar "snapstyl")1)(setvar "snapstyl" 0)(setvar "snapstyl" 1))(princ)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts