Hide LISP routine from appearing in command line

Discussion in 'AutoCAD' started by mgrigoriev, Apr 5, 2005.

  1. mgrigoriev

    mgrigoriev Guest

    Hi,
    I have 2 LISP routines and 1 VB DLL.
    LISP routines I define as:
    defun c:R1()
    defun c:R2()
    The first LISP routine (R1) is called by AutoCAD. It calles a VB DLL that does stuff. The VB DLL calls the second LISP routine (R2). When all routines are finished running, on the right click in AutoCAD I will get the R2 routine. I wouldn't like R2 to appear on the command line because it is not an independent routine. I would like R1 to start running on the right mouse click. What can I do to make that happen? Maybe I shouldn't define R2 with defun c:? Anyway, what should I do?

    Thanks,
    Mike
     
    mgrigoriev, Apr 5, 2005
    #1
  2. mgrigoriev

    Jeff Mishler Guest

    Maybe I shouldn't define R2 with defun c:? Anyway, what should I do?Correct, use (defun r2 () blah), then call it like so: (r2)
     
    Jeff Mishler, Apr 5, 2005
    #2
  3. mgrigoriev

    mgrigoriev Guest

    Thanks!
     
    mgrigoriev, Apr 5, 2005
    #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.