Loading Acaddoc.lsp

Discussion in 'AutoCAD' started by Sandra Rivera, Oct 4, 2004.

  1. Okay folks here is what happens
    1. Everything works the way it is documented to work in Autocad 2002.
    2. The Acaddoc.lsp is ignored in two different installations of 2004 if it
    is in the drawing directory OR if it is in the Autocad support directory.
    3. The Acaddoc2004.lsp is loaded whether it is on the search path or in the
    drawing directory. Only if a line of code is added at the bottom '(load
    "acaddoc.lsp") then the acaddoc lisp will load following the correct search
    order.
    4. The acad.mnl will only load with the acad.mns, mnr, mnc files and they
    will only load from the user profile folder. (both XP and 2000)

    What is needed here is for a user to open a drawing in a specific directory
    and the lisp programs will load because when one of these drawings are
    opened, these are the programs you will need to work on this type of
    drawing.

    Different directories have other types of drawings that will require a
    different set of programs to work on them.

    What would make Autocad not perform the way it was documented?
    Anybody?
    Is anyone from Autodesk monitoring this?
     
    Sandra Rivera, Oct 4, 2004
    #1
  2. By the way I tried all of the above with the AcadLspAsDoc system variable
    and the RememberFolders variable set in each possible combination. All
    settings had no effect.
     
    Sandra Rivera, Oct 4, 2004
    #2
  3. Sandra,

    We do something similar to what you are attempting, but from a slightly
    different approach.

    AcadLspAsDoc=0

    Store/execute all startup code in our customized menu's .mnl file. Part of
    the code searches for a "Project.lsp" file in the current drawing's path
    and, if found, loads it:

    (cond ((setq FileN (findfile (strcat (getvar "DwgPrefix") "Project.lsp")))
    (load FileN)))


    --
    R. Robert Bell


    Okay folks here is what happens
    1. Everything works the way it is documented to work in Autocad 2002.
    2. The Acaddoc.lsp is ignored in two different installations of 2004 if it
    is in the drawing directory OR if it is in the Autocad support directory.
    3. The Acaddoc2004.lsp is loaded whether it is on the search path or in the
    drawing directory. Only if a line of code is added at the bottom '(load
    "acaddoc.lsp") then the acaddoc lisp will load following the correct search
    order.
    4. The acad.mnl will only load with the acad.mns, mnr, mnc files and they
    will only load from the user profile folder. (both XP and 2000)

    What is needed here is for a user to open a drawing in a specific directory
    and the lisp programs will load because when one of these drawings are
    opened, these are the programs you will need to work on this type of
    drawing.

    Different directories have other types of drawings that will require a
    different set of programs to work on them.

    What would make Autocad not perform the way it was documented?
    Anybody?
    Is anyone from Autodesk monitoring this?
     
    R. Robert Bell, Oct 4, 2004
    #3
  4. Sandra Rivera

    Tom Smith Guest

    What would make Autocad not perform the way it was documented?

    As long as I start Acad from its desktop icon -- not by double-clicking a
    drawing file -- my 2004 behaves exactly as documented.

    If there is an acaddoc.lsp file on the support file search path, it loads in
    every drawing. If there is a different one in the drawing directory, then
    that one loads instead of the support-path version, because the drawing
    directory takes precedence over the search path.

    However, if I initally start Acad by double-clicking a drawing file, then
    that drawing's directory seems to become the Acad current directory, and if
    there is an acaddoc.lsp in that folder, it will load in every subsequent
    drawing regardless of the drawing's folder. I think that you might not be
    able to do what you want, if your users start Acad initially by
    double-clicking a drawing.

    I can't duplicate the business of an acaddoc.lsp that is on the search path
    but never loads.
     
    Tom Smith, Oct 4, 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.