acad.lsp-acaddoc.lps & ss:startup

Discussion in 'AutoCAD' started by perry, Jun 3, 2004.

  1. perry

    perry Guest

    If I have a function I want to run on every drawing it seems the obvious
    solution is to create an ss:startup routine in AcadDoc.lsp and put
    it in there.
    If I have a function I want to run only once per session it again seems
    obvious to create a ss:startup routine in Acad.lsp and put
    it in there.
    However, what if I want to do both? Obviously having two ss:startup routines
    in two different files is not going to work.
    Is there an elegant solution for this problem?
    Thanks
     
    perry, Jun 3, 2004
    #1
  2. perry

    perry Guest

    True Robert, I wasnt to sure about my code though, it was simply a "command"
    to run a vba macro.
    But I figured, what the heck, cant hurt to try so I did. It worked just
    fine.
    Thanks
     
    perry, Jun 4, 2004
    #2
  3. perry

    John Uhden Guest

    Another way would be to use one (1) acaddoc.lsp and the (vl-bb-xxx) functions to
    store/read an indicator of whether an operation has been run once.
     
    John Uhden, Jun 5, 2004
    #3
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.