Boggle.....reinstall intros unexpected LISP results

Discussion in 'AutoCAD' started by cameronhughes, Mar 3, 2005.

  1. I was having a problem with Autocad hanging up on certain commands, and was unable to find a solution. A reinstall fixed the problem, but now I am getting unexpected results from LISP routines that I have been using for a while.

    ;;;zxText
    (defun c:zxMtext ()
    (command "-layer" "m" "A-Anno-Text" "")
    (command "_mtext" pause "_justify" "TC" pause)
    )

    -used- to default to mtext in the command line, and, if the command line was left blank and 'Enter' was hit, opened the mtext window.

    Hitting 'Enter' now ends the command when the Mtext line is left blank.

    What would cause this?
     
    cameronhughes, Mar 3, 2005
    #1
  2. Try this.

    (defun c:zxMtext ()
    (command "-layer" "m" "A-Anno-Text" "")
    (setvar "cmdecho" 1)
    (initdia)
    (command "mtext" pause "_justify" "TC")
    )

    Jesse
     
    Jesse_Pickrum, Mar 4, 2005
    #2
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.