ERROR WITH [LOAD]

Discussion in 'AutoCAD' started by p.bassetto, Feb 11, 2004.

  1. p.bassetto

    p.bassetto Guest

    I'm a beginner with lisp. I just want some lisp I always use to be loaded in every dwg and I did this lisp to do that. all lisp are in the same folder but only for on six are loaded and the two of them that starts with 00.... are not. if I load them indipendently they all work.
    what do I do wrong? (I don't want to use the startup suite because I don't work always on the same computer)
    thanks for your help

    LISP:
    (command "textfill" "1")
    (command "mbuttonpan" "1")
    (command "osnapcoord" "1")
    (print (load "K:\ALL-LAYERS.lsp" "\all-layers.lsp not loaded."))
    (print (load "K:\0014-VO-sort.lsp" "\0014VO-sort.lsp not loaded."))
    (print (load "K:\00-14-PonteParodi.lsp" "\0014-PonteParodi not loaded."))
    (print (load "K:\hatch bound generate.LSP" "\hatch bound generate not loaded."))
    (print (load "K:\COPY-IN-PLACE.LSP" "\COPY-IN-PLACE.LSP not loaded."))
    (print (load "K:\orderlayers.LSP" "\orderlayers.LSP not loaded."))
    (print)

    MESSAGE DISPLAYED
    AutoCAD menu utilities loaded.textfill 1 mbuttonpan 1 osnapcoord 1
    C:GL
    "\0014VO-sort.lsp not loaded."
    "\0014-PonteParodi not loaded."
    C:HATCHB
    C:C2L
    C:OR
     
    p.bassetto, Feb 11, 2004
    #1
  2. p.bassetto

    bruno Guest

    p.bassetto:


    all is ok!
    exept: files 0014VO-sort & 0014-PonteParodi are not found
     
    bruno, Feb 11, 2004
    #2
  3. p.bassetto

    nagesh nangi Guest

    search acad.lsp in autocad installed folder.
    if file not found than create the file in support folder of autocad.
    copy these lines in acad.lsp,these lisp will get loaded automatically

    (load "K:\ALL-LAYERS.lsp" )
    (load "K:\0014-VO-sort.lsp" )
    (load "K:\00-14-PonteParodi.lsp" )
    (load "K:\hatch bound generate.LSP" )
    (load "K:\COPY-IN-PLACE.LSP" )
    (load "K:\orderlayers.LSP")
     
    nagesh nangi, Feb 11, 2004
    #3
  4. p.bassetto

    p.bassetto Guest

    I've tried that but it still doesn't load the ones that start by 00...
    can it be that if I rename (since the only that doesn't load start with a number) it works? and in case it works why?
    thank you
     
    p.bassetto, Feb 11, 2004
    #4
  5. p.bassetto

    nagesh nangi Guest

    use double slash "\\" wherever u r using "\"
    like this:
    (load "K:\\ALL-LAYERS.lsp" )
    may be it will help u.
    Nagesh
     
    nagesh nangi, Feb 11, 2004
    #5
  6. p.bassetto

    p.bassetto Guest

    thank you, it worked. which is the difference between "\" and "\\" if I may ask?
     
    p.bassetto, Feb 11, 2004
    #6
  7. p.bassetto

    nagesh nangi Guest

    backslash (\) is an escape character, so you need two backslashes (\\) to
    produce one backslash in a string.
    search wcmatch in vlisp help u will get more details.
    Nagesh
     
    nagesh nangi, Feb 11, 2004
    #7
  8. p.bassetto

    Tom Smith Guest

    I'm a beginner with lisp. I just want some lisp I always use to be loaded
    in every dwg

    You might want to look at the autoload function instead. If you're loading
    any amount of stuff, it can get you into the drawing quicker. Autoload
    doesn't actually open a lisp file and load it until you run a command
    associated with it.
     
    Tom Smith, Feb 11, 2004
    #8
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.