VLAX question

Discussion in 'AutoCAD' started by Dale, Jul 15, 2003.

  1. Dale

    Dale Guest

    Hi All-

    I've used the VLAX class successfully numerous times until today. Here's an
    example of what I'm attempting to do:

    '******************************************
    Dim oVlax As New VLAX
    Dim lispString As String
    Dim retval As String

    lispString = "(command ""circle"" ""0,0"" ""5"")"
    retval = oVlax.EvalLispExpression(lispString)
    '******************************************

    The resulting Lisp string is:
    (command "circle" "0,0" "5")

    This works fine when run in a Lisp program or from the command line.
    However when evaluated with VLAX it returns error 2000 "invalid AutoCAD
    command: nil"

    My actual application does not add a circle - this is just an example using
    the Lisp command - "command".

    Any help would be Greatly Appreciated!

    Thanks,

    Dale Lundgren
     
    Dale, Jul 15, 2003
    #1
  2. Dale

    Dale Guest

    The Class header that I have does not contain any limitations or guidelines.
    I'm starting to think that you're right - VLAX can not execute the COMMAND
    Function.

    Thanks,

    Dale
     
    Dale, Jul 15, 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.