Acaddoc.lsp not loading

Discussion in 'AutoCAD' started by Tom Craft, Jan 6, 2004.

  1. Tom Craft

    Tom Craft Guest

    When I load a drawing into AC2004 the acaddoc.lsp file is not being
    loaded. It is in the
    acad 2004\support directory which is in the search path. The file is
    identical to the one I use with AC2000. I can load it from the command
    line just fine - IF I include the
    full search path.

    (vl-load-com)
    (load "calldll")

    Any ideas?

    Tom Craft
     
    Tom Craft, Jan 6, 2004
    #1
  2. Are you sure you are in the right group?

    ;^)

    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | When I load a drawing into AC2004 the acaddoc.lsp file is not being
    | loaded. It is in the
    | acad 2004\support directory which is in the search path. The file is
    | identical to the one I use with AC2000. I can load it from the command
    | line just fine - IF I include the
    | full search path.
    |
    | (vl-load-com)
    | (load "calldll")
    |
    | Any ideas?
    |
    | Tom Craft
    |
     
    R. Robert Bell, Jan 6, 2004
    #2
  3. Tom Craft

    Tom Craft Guest

    Perhaps not, but how are other VB developers getting their class calling
    Vlisp routines automatically loaded?
     
    Tom Craft, Jan 7, 2004
    #3
  4. Ah, but see, your original post mentioned nothing about VBA. <vbg>

    AutoCAD 2004 changed the default locations for support files. Look at your
    search path in the Preferences dialog. To see where AcadDoc.lsp is being
    loaded from, use this: (findfile "AcadDoc.lsp").


    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | Perhaps not, but how are other VB developers getting their class calling
    | Vlisp routines automatically loaded?
    |
    | "R. Robert Bell" wrote:
    |
    | > Are you sure you are in the right group?
    | >
    | > ;^)
    | >
    | > --
    | > R. Robert Bell, MCSE
    | > www.AcadX.com
    | >
    | > | > | When I load a drawing into AC2004 the acaddoc.lsp file is not being
    | > | loaded. It is in the
    | > | acad 2004\support directory which is in the search path. The file is
    | > | identical to the one I use with AC2000. I can load it from the command
    | > | line just fine - IF I include the
    | > | full search path.
    | > |
    | > | (vl-load-com)
    | > | (load "calldll")
    | > |
    | > | Any ideas?
    | > |
    | > | Tom Craft
    | > |
    |
     
    R. Robert Bell, Jan 7, 2004
    #4
  5. Tom Craft

    Tom Craft Guest

    I didn't think acaddoc.lsp existed until created by the user. The only instance
    of the file is covered by the search path and I can load it manually without
    stating the path
     
    Tom Craft, Jan 12, 2004
    #5
  6. You stated in the original post that you needed to use the full path to
    manually load it. Have you changed something since that first post?


    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | I didn't think acaddoc.lsp existed until created by the user. The only
    instance
    | of the file is covered by the search path and I can load it manually
    without
    | stating the path
    |
    | "R. Robert Bell" wrote:
    |
    | > Ah, but see, your original post mentioned nothing about VBA. <vbg>
    | >
    | > AutoCAD 2004 changed the default locations for support files. Look at
    your
    | > search path in the Preferences dialog. To see where AcadDoc.lsp is being
    | > loaded from, use this: (findfile "AcadDoc.lsp").
    | >
    | > --
    | > R. Robert Bell, MCSE
    | > www.AcadX.com
    | >
    | > | > | Perhaps not, but how are other VB developers getting their class
    calling
    | > | Vlisp routines automatically loaded?
    | > |
    | > | "R. Robert Bell" wrote:
    | > |
    | > | > Are you sure you are in the right group?
    | > | >
    | > | > ;^)
    | > | >
    | > | > --
    | > | > R. Robert Bell, MCSE
    | > | > www.AcadX.com
    | > | >
    | > | > | > | > | When I load a drawing into AC2004 the acaddoc.lsp file is not
    being
    | > | > | loaded. It is in the
    | > | > | acad 2004\support directory which is in the search path. The file
    is
    | > | > | identical to the one I use with AC2000. I can load it from the
    command
    | > | > | line just fine - IF I include the
    | > | > | full search path.
    | > | > |
    | > | > | (vl-load-com)
    | > | > | (load "calldll")
    | > | > |
    | > | > | Any ideas?
    | > | > |
    | > | > | Tom Craft
    | > | > |
    | > |
    |
     
    R. Robert Bell, Jan 12, 2004
    #6
  7. Tom Craft

    Tom Craft Guest

    No change, just wrong wording. I still need to use the entire path even when it
    is in a search path directory. I can call other lisp files in the same directory
    without the full path.
    Autocad keeps suggesting that the startup files be in the menu .mnl file, but I
    don't believe that the menu is reloaded with each new drawing. I am concerned on
    keeping track of VB and Lisp variables in a MDI environment.How is this being
    done in other VB/Acad projects?
    Thanks,
    Tom Craft
     
    Tom Craft, Jan 13, 2004
    #7
  8. The .mnl *does* reload with each opened drawing. I use my customized menu's
    ..mnl for startup code.

    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | No change, just wrong wording. I still need to use the entire path even
    when it
    | is in a search path directory. I can call other lisp files in the same
    directory
    | without the full path.
    | Autocad keeps suggesting that the startup files be in the menu .mnl file,
    but I
    | don't believe that the menu is reloaded with each new drawing. I am
    concerned on
    | keeping track of VB and Lisp variables in a MDI environment.How is this
    being
    | done in other VB/Acad projects?
    | Thanks,
    | Tom Craft
    |
    |
    | "R. Robert Bell" wrote:
    |
    | > You stated in the original post that you needed to use the full path to
    | > manually load it. Have you changed something since that first post?
    | >
    | > --
    | > R. Robert Bell, MCSE
    | > www.AcadX.com
    | >
    | > | > | I didn't think acaddoc.lsp existed until created by the user. The only
    | > instance
    | > | of the file is covered by the search path and I can load it manually
    | > without
    | > | stating the path
    | > |
    | > | "R. Robert Bell" wrote:
    | > |
    | > | > Ah, but see, your original post mentioned nothing about VBA. <vbg>
    | > | >
    | > | > AutoCAD 2004 changed the default locations for support files. Look
    at
    | > your
    | > | > search path in the Preferences dialog. To see where AcadDoc.lsp is
    being
    | > | > loaded from, use this: (findfile "AcadDoc.lsp").
    | > | >
    | > | > --
    | > | > R. Robert Bell, MCSE
    | > | > www.AcadX.com
    | > | >
    | > | > | > | > | Perhaps not, but how are other VB developers getting their class
    | > calling
    | > | > | Vlisp routines automatically loaded?
    | > | > |
    | > | > | "R. Robert Bell" wrote:
    | > | > |
    | > | > | > Are you sure you are in the right group?
    | > | > | >
    | > | > | > ;^)
    | > | > | >
    | > | > | > --
    | > | > | > R. Robert Bell, MCSE
    | > | > | > www.AcadX.com
    | > | > | >
    | > | > | > | > | > | > | When I load a drawing into AC2004 the acaddoc.lsp file is not
    | > being
    | > | > | > | loaded. It is in the
    | > | > | > | acad 2004\support directory which is in the search path. The
    file
    | > is
    | > | > | > | identical to the one I use with AC2000. I can load it from the
    | > command
    | > | > | > | line just fine - IF I include the
    | > | > | > | full search path.
    | > | > | > |
    | > | > | > | (vl-load-com)
    | > | > | > | (load "calldll")
    | > | > | > |
    | > | > | > | Any ideas?
    | > | > | > |
    | > | > | > | Tom Craft
    | > | > | > |
    | > | > |
    | > |
    |
     
    R. Robert Bell, Jan 13, 2004
    #8
  9. Tom Craft

    Tom Craft Guest

    Thanks Robert,
    I thought I had read that the .mnl file loads only once. This will solve my
    problem, but still curious as to why the acaddoc.lsp file does not load.

    Tom
     
    Tom Craft, Jan 14, 2004
    #9
  10. Tom Craft

    Mark Propst Guest

    are you sure you don't have a copy in more than one location?
    You may be editing one copy while it's loading the other?
    acaddoc.lsp definitely loads every dwg...at least here and in the docs...
     
    Mark Propst, Jan 14, 2004
    #10
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.