Execution Error

Discussion in 'AutoCAD' started by jbryant4, Sep 2, 2004.

  1. jbryant4

    jbryant4 Guest

    While in the VB Editor, I can run a macro, and it works fine. If I switch over to AutoCAD, and use the -vbarun command to run the exact same macro, I get an "Execution error" on the command line, however the macro ran ok. Any ideas why this "Execution error" only occurs from the Acad command line?
     
    jbryant4, Sep 2, 2004
    #1
  2. Search this ng; it has been discussed several time before.

    --
    R. Robert Bell


    While in the VB Editor, I can run a macro, and it works fine. If I switch
    over to AutoCAD, and use the -vbarun command to run the exact same macro, I
    get an "Execution error" on the command line, however the macro ran ok. Any
    ideas why this "Execution error" only occurs from the Acad command line?
     
    R. Robert Bell, Sep 2, 2004
    #2
  3. jbryant4

    jbryant4 Guest

    Unload Me fixed it. Is there a way to check to see if a .dvb is already loaded? Thanks
     
    jbryant4, Sep 2, 2004
    #3
  4. Again, search this ng, but this time look for how to load/execute VBA
    projects (hint: you probably don't need to worry about that, given how you
    load/execute the macro).

    --
    R. Robert Bell


    Unload Me fixed it. Is there a way to check to see if a .dvb is already
    loaded? Thanks
     
    R. Robert Bell, Sep 2, 2004
    #4
  5. jbryant4

    Ed Jobe Guest

    By any chance are you using the End keyword instead of Exit?

    --
    ----
    Ed
    ----
    loaded? Thanks
     
    Ed Jobe, Sep 2, 2004
    #5
  6. jbryant4

    jbryant4 Guest

    Yes I found a stray END. I am using a large code piece from another user. I replaced EDN with UNLOAD ME and it got rid of the "Execution Error". The other problem I solved by:

    (vl-vbarun (strcat
    (findfile "xmltofdv.dvb")
    "!FDVessel.XMLtoFDV_Start"
    )
    )

    Thanks
    ps The VBA Help Files really SUCK!
     
    jbryant4, Sep 2, 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.