loading vba from acad.lsp

Discussion in 'AutoCAD' started by Edward Bagby, Jan 27, 2004.

  1. Edward Bagby

    Edward Bagby Guest

    I placed the following line of code in my acad.lsp start up file

    (vl-vbarun "[path]")

    when I have autocad reading acad.lsp only when autocad is opened, the line
    runs fine. If I have autocad set to run acad.lsp everytime a drawing is
    opened it seems to get stuck on this line and I have to shut down autocad.
    Why would this be happening?!?

    I'm using AutoCAD 2000i

    Thank you very much,
    Edward
     
    Edward Bagby, Jan 27, 2004
    #1
  2. Perhaps (w/out benefit of hand holding error checking) ...

    (progn

    ; ...

    (vl-load-com)

    (vla-loaddvb
    (setq AcadApplication (vlax-get-acad-object))
    "x:\\MyFolder\\MyProject.dvb"
    )

    (vla-runmacro
    AcadApplication
    "MyModule.MySub"
    )

    ; ...

    )

    I placed the following line of code in my acad.lsp start up file

    (vl-vbarun "[path]")

    when I have autocad reading acad.lsp only when autocad is opened, the line
    runs fine. If I have autocad set to run acad.lsp everytime a drawing is
    opened it seems to get stuck on this line and I have to shut down autocad.
    Why would this be happening?!?

    I'm using AutoCAD 2000i

    Thank you very much,
    Edward
     
    michael puckett, Jan 27, 2004
    #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.