Call Lisp From Within A Lisp

Discussion in 'AutoCAD' started by Tim, May 12, 2004.

  1. Tim

    Tim Guest

    I know this has been answered here before but I cant find it doing a
    search...so

    How do I call a lisp routine from within a lisp?


    Thanks A bunch


    Tim W.
     
    Tim, May 12, 2004
    #1
  2. Tim

    Paul Turvill Guest

    If it's defined as a function -- (defun myfunc ( ) ...) -- use
    (myfunc)

    If it's defined as a command -- (defun C:MYCMD ( ) --- use
    (c:mycmd)

    If it requires arguments -- (defun myfunc (arg1 arg2 / ...) ...) -- use
    (myfunc val1 val2)
    ___
     
    Paul Turvill, May 12, 2004
    #2
  3. Tim

    Tom Smith Guest

    And make sure it's been loaded first, unless it's a "library" utility that's
    always loaded on startup.
     
    Tom Smith, May 12, 2004
    #3
  4. Tim

    Tim Guest

    Thanks for the quick response guys

    Tim
     
    Tim, May 12, 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.