read echo command invba or variable lisp

Discussion in 'AutoCAD' started by M.Benvenuti, Sep 17, 2003.

  1. M.Benvenuti

    M.Benvenuti Guest

    the question is:
    Is possible read with vba the echo command of autocad ?
    or is possible read with vba the variable set by lisp command
    example (setq a '("AA" "BB" "CC" ("A1" "A2" "A3" "A4" "" "")))

     
    M.Benvenuti, Sep 17, 2003
    #1
  2. M.Benvenuti

    Kevin Terry Guest

    Here's an example of reading the command line:
    ThisDrawing.SendCommand "AMVER" & vbCrLf
    debug.print "AMVER: " & ThisDrawing.GetVariable("LASTPROMPT")

    If you just need to pass the occasional variable from lisp to vba, you could
    use the USERS1 or USERI1 system variables:
    sMyVar = ThisDrawing.GetVariable "USERS1"

    Kevin
     
    Kevin Terry, Sep 17, 2003
    #2
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.