Transparent LISP Command

Discussion in 'AutoCAD' started by jkgreene, Jul 9, 2004.

  1. jkgreene

    jkgreene Guest

    Hello All,
    What is the procedure for making a LISP command transparent, ie. being able to use the command while active in another command?

    Thanks
     
    jkgreene, Jul 9, 2004
    #1
  2. jkgreene

    Paul Turvill Guest

    AFAIK, you can't use a LISP *command* transparently. You can, however, use
    many LISP *functions* transparently by just typing the LISP expression at
    the appropriate prompt.
    ___

    able to use the command while active in another command?
     
    Paul Turvill, Jul 9, 2004
    #2
  3. (vlax-Add-Cmd)

    Search this ng, there have been several examples posted in the past.

    --
    R. Robert Bell


    AFAIK, you can't use a LISP *command* transparently. You can, however, use
    many LISP *functions* transparently by just typing the LISP expression at
    the appropriate prompt.
    ___

    able to use the command while active in another command?
     
    R. Robert Bell, Jul 9, 2004
    #3
  4. jkgreene

    rapidcad Guest

    If you are talking about starting a lisp while in a command, all you have to do is (have the lisp already loaded) and issue a ' before the function at the command line.. Like
    command: line
    pick
    'mp (my mid-point between two points lisp routine)
    next point...

    If you are talking about initiating a lisp from inside another lisp I think it has to be a function (already loaded in your acaddoc lisp or in the program itself) not a "c:defun" command function - but I'm not sure about all the details about this - anyone else want to chime in?
     
    rapidcad, Jul 9, 2004
    #4
  5. jkgreene

    Paul Turvill Guest

    Got me! Thanks.
    ___
     
    Paul Turvill, Jul 9, 2004
    #5
  6. jkgreene

    Tom Smith Guest

    If you are talking about starting a lisp while in a command, all you have
    to do is (have the lisp already loaded) and issue a ' before the function at
    the command line.

    I was about to say you're wrong, as this never worked in earlier versions,
    but darned if it isn't legal in 2004! When did this change happen?
     
    Tom Smith, Jul 12, 2004
    #6
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.