VBA - Lisp Presidence

Discussion in 'AutoCAD' started by Matthew, Sep 23, 2004.

  1. Matthew

    Matthew Guest

    I am wondering what the load order is or the execution order of this
    scenario. I have an acad.lsp file in the search path with an S::Startup
    function. Then I also have a acad.dvb file with a S::Startup function.

    1, What is the load order of these files?
    2, What is the execution order of these startup functions?

    Thanks
    Matthew
     
    Matthew, Sep 23, 2004
    #1
  2. Matthew

    Matt W Guest

    I don't know the answer, but it wouldn't be too hard to find out.
    In your LSP, you could simply add a line that displays the AutoCAD alert
    message box (alert "This is from LSP"). Likewise with your DVB (msgbox "This
    is from DVB").

    With this you can easily tell what's loading before what.

    --
    I love deadlines
    I like the whooshing sound they make as they fly by.

    |I am wondering what the load order is or the execution order of this
    | scenario. I have an acad.lsp file in the search path with an S::Startup
    | function. Then I also have a acad.dvb file with a S::Startup function.
    |
    | 1, What is the load order of these files?
    | 2, What is the execution order of these startup functions?
    |
    | Thanks
    | Matthew
    |
    |
     
    Matt W, Sep 23, 2004
    #2
  3. Matthew

    Matthew Guest

    Bummer man. the order is.

    load acad.lsp
    Initialize VBA
    Load acad.dvb
    Run VBA AcadStartup()
    Run LSP S::Startup

    open a new file
    Run VBA AcadDocument_Activate()
    Run LSP S::Startup

    Thanks
    Matthew
     
    Matthew, Sep 23, 2004
    #3
  4. Matthew

    Josh Guest

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.