Interesting Lisp Question

Discussion in 'AutoCAD' started by Heath Tupper, Oct 7, 2004.

  1. Heath Tupper

    Heath Tupper Guest

    I am trying to load a custom lisp routine on the startup of autocad. I have
    added the string to the acad.lsp file. When I try to path to the file on my
    network I get an error on loading, but if I set it local it loads fine. The
    interesting part is that the lisp routine that will only load on the local
    drive will still call other lisp routine from the network drive. Any ideas.
    the only thing I can come up with right now is that there is a local setting
    that autocad does not like to go look on the network for anything on
    loading. Any body with any ideas would be greatly appreciated.

    HT
     
    Heath Tupper, Oct 7, 2004
    #1
  2. Heath Tupper

    R.K. McSwain Guest


    Post your code.

    Are you doing:

    Something like (load \\\\server\\share\\doit.lsp) ??

    or (load "//server/share/doit.lsp") ??

    or (load "Q:\doit.lsp")

    or ????
     
    R.K. McSwain, Oct 7, 2004
    #2
  3. Heath Tupper

    Heath Guest

    (load "server:/folder/lisp/custom.lsp")



    Post your code.

    Are you doing:

    Something like (load \\\\server\\share\\doit.lsp) ??

    or (load "//server/share/doit.lsp") ??

    or (load "Q:\doit.lsp")

    or ????
     
    Heath, Oct 7, 2004
    #3
  4. Heath Tupper

    C Witt Guest

    try

    (load "server:\\folder\\lisp\\custom.lsp")
     
    C Witt, Oct 7, 2004
    #4
  5. Heath Tupper

    Tom Smith Guest

    (load "server:\\folder\\lisp\\custom.lsp")

    There shouldn't be any difference between using / or \\ as a delimiter. I
    wonder if Heath is trying to use the actual server name or a mapped drive
    letter, as RK asked?

    For instance, I can use either (load
    "//servername/folder/.../lisp/custom.lsp") or (load
    "Q:/.../lisp/custom.lsp") if Q: is mapped to //servername/folder/. In either
    case I can substitute \\ for each / and they still work.
     
    Tom Smith, Oct 7, 2004
    #5
  6. Heath Tupper

    R.K. McSwain Guest

    Hmmmm... maybe I need to learn something...
    What is the colon :)) for?

    (load "//server/share/lisp/doit")
    -or-
    (load "\\\\server\\share\\lisp\\doit")

    have always worked for me.
     
    R.K. McSwain, Oct 7, 2004
    #6
  7. Heath Tupper

    Heath Tupper Guest

    the load is loading to a mapped drive letter on server. The colon is in
    front of the server drive letter. Server is replacing the drive letter
    (security reasons).

    Hmmmm... maybe I need to learn something...
    What is the colon :)) for?

    (load "//server/share/lisp/doit")
    -or-
    (load "\\\\server\\share\\lisp\\doit")

    have always worked for me.
     
    Heath Tupper, Oct 7, 2004
    #7
  8. the load is loading to a mapped drive letter on server. The colon is in
    front of the server drive letter. Server is replacing the drive letter
    (security reasons).

    I'm guessing the drive letter is somewhere between E to Z. Someone is
    paranoid. ;^)
     
    R. Robert Bell, Oct 7, 2004
    #8
  9. Heath Tupper

    R.K. McSwain Guest

    LOL :)
     
    R.K. McSwain, Oct 7, 2004
    #9
  10. Heath Tupper

    Heath Guest

    all being what it is you know that it is a drive letter. I jumped on this
    news group in hopes that someone might have an actual intelligent answer for
    me. If anyone has any insight for me I would greatly appreciate it.
    LOL :)
     
    Heath, Oct 8, 2004
    #10
  11. Heath Tupper

    R.K. McSwain Guest

    Just for grins, add that path to your support file search path and then try:
    (load "custom.lsp")
     
    R.K. McSwain, Oct 8, 2004
    #11
  12. My point was that, if the issue is a typo, by posting a bogus
    because-of-security-issues load string, you make debugging more difficult.

    --
    R. Robert Bell


    all being what it is you know that it is a drive letter. I jumped on this
    news group in hopes that someone might have an actual intelligent answer for
    me. If anyone has any insight for me I would greatly appreciate it.
    LOL :)
     
    R. Robert Bell, Oct 8, 2004
    #12
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.