Call express command with lisp

Discussion in 'AutoCAD' started by facicad, Sep 13, 2004.

  1. facicad

    facicad Guest

    Hi, I would like to know if I can call express command with lisp command.
    Ex.: (defun c:ms()(command "mstretch")) Beacause went I use this code, it
    send me Unknown command "MSTRETCH"
     
    facicad, Sep 13, 2004
    #1
  2. facicad

    Paul Turvill Guest

    ET commands are externally defined, and may be called directly as LISP
    functions, for example:

    (defun C:MS ( )
    (c:mstretch)
    (princ)
    )
    ___
     
    Paul Turvill, Sep 13, 2004
    #2
  3. facicad

    facicad Guest

    Thanks for your help!!
     
    facicad, Sep 13, 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.