(defun c:aaa () (command "layuniso"))

Discussion in 'AutoCAD' started by lmc, Jan 21, 2004.

  1. lmc

    lmc Guest

    why does this respond a unknown command, but when layuniso typed directly it
    runs fine?
     
    lmc, Jan 21, 2004
    #1
  2. lmc

    lmc Guest

    nice, thanks

    now for why it likes one but not the other..
     
    lmc, Jan 21, 2004
    #2
  3. lmc

    Tom Smith Guest

    Because it's not a command, it's an Express Tools lisp function.

    You can't call a defun as a command, even though you can type it at the
    command prompt. It's the same as trying to run your function by calling
    (command "aaa") -- it won't work.
     
    Tom Smith, Jan 21, 2004
    #3
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.