lisp string dont work

Discussion in 'AutoCAD' started by Stefano, Sep 9, 2004.

  1. Stefano

    Stefano Guest

    (command "_.dimlinear" pause pause "'_.snap" "'_.a" 60 60 pause)

    this string dont work: where is the error?

    thank
     
    Stefano, Sep 9, 2004
    #1
  2. Stefano

    Rick Keller Guest

    You are trying to mix 2 commands together Try splitting them up.

    (command ".snap" "a" 60 60)
    (command "_.dimlinear" pause pause pause)

    Rick
     
    Rick Keller, Sep 9, 2004
    #2
  3. Stefano

    Rick Keller Guest

    Didn't realize you can do that. I wondered if there was a way to place
    multiple commands in one line.

    Rick
     
    Rick Keller, Sep 9, 2004
    #3
  4. The single quote is to use a command transparently while another command is
    running. Only some commands allow this, but snap is one of them. I think
    Stefano is OK having the third pause after setting a snap value, and I can
    easily imagine you'd want snap off while you picked the first two points,
    but then on to position the dimension line. But the single quote is only
    appropriate for the snap command, not the "a" option. Try leaving the
    single quote and period out before the "a":

    (command "_.dimlinear" pause pause "'_.snap" "_a" 60 60 pause)

    It's the same as Jon's, but with the single-quoted snap command so the third
    pause can be after that. I think Jon's would work except that with the
    third pause added in the middle, the one at the end doesn't do anything any
    more, and there might not be much point in setting a snap value after the
    dimension command is over.

    Kent Cooper, AIA
     
    Kent Cooper, AIA, Sep 9, 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.