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
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")
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
use double slash "\\" wherever u r using "\" like this: (load "K:\\ALL-LAYERS.lsp" ) may be it will help u. Nagesh
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
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.