Acad.lisp startup

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. Edward Bagby

    ECCAD Guest

    (vl-load-com) ?
    Bob
     
    ECCAD, Jan 27, 2004
    #2
  3. Edward Bagby

    Edward Bagby Guest

    That did not seem to work.
    I'm curious, what did you think that would do?
    The line runs fine when autocad is initially opened but not in subsequent
    openings of autocad.

    Edward
     
    Edward Bagby, Jan 27, 2004
    #3
  4. Edward Bagby

    RDI Guest

    Try this
    ;you can make the variable name anything you want--just make sure
    ;that it's something that WON'T be over-written later.
    (if (not Bagby:VBA_apploaded)(progn(setq Bagby:VBA_apploaded 1)(vl-vbarun
    "[path]")))
     
    RDI, Jan 27, 2004
    #4
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.