I have my autoload.lsp being loaded be my acaddoc.lsp which I have done for quite a while. It now does not work. If I am understanding correctly it is loading because I see it when I go into appload, I also see at the command prompt "Loaded", but not one routine in the autoload works?
A sample of my routine is below:
(setq lisp_path (strcat "C:\\Users\\Public\\Team\\Autodesk\\GoogleDrive\\R19.1\\Linetypes\\team.lin"))
(load (strcat lisp_path "sanunknown") '("sanunknown"))
(load (strcat lisp_path "san8") '("san8"))
(load (strcat lisp_path "san10") '("san10"))
(load (strcat lisp_path "san12") '("san12"))
(load (strcat lisp_path "san15") '("san15"))
(load (strcat lisp_path "san18") '("san18"))
(load (strcat lisp_path "san24") '("san24"))
(load (strcat lisp_path "san36") '("san36"))
(load (strcat lisp_path "san48") '("san48"))
(princ " loaded")
Any help would be GREATLY appreciated !!
Solved! Go to Solution.
Solved by Lee_Mac. Go to Solution.
Just looking at your brief sample it looks like the path goes to a linetype file "team.lin"
If this is the case, you cannot use the load lisp function to load linetypes.
You would have to use AutoCAD's Linetype command & load option:
(command "_.Linetype" "_Load" (strcat lisp_path))
There's also a possiblity you are loading shape files under folder "team.lin". But then you would use AutoCAD's Load command to do this:
(command"_.Load (strcat lisp_path "\\sanunknown"))
Then there's also a possibility that there are lisp files saved under "team.lin" subfolder then your load lisp function is missing a "\\":
(load (strcat lisp_path "\\sanunknown"))
You are seeing at the command prompt "Loaded" because the last line in yoru sample shows this statement:
(princ " loaded")
But that doesn't mean anything is necessarily "loaded".
Without any additional info, it's really hard to provide any more feedback.
(load (strcat lisp_path "sanunknown") '("sanunknown"))
(load (strcat lisp_path "san8") '("san8"))
(load (strcat lisp_path "san10") '("san10"))
(load (strcat lisp_path "san12") '("san12"))
(load (strcat lisp_path "san15") '("san15"))
(load (strcat lisp_path "san18") '("san18"))
(load (strcat lisp_path "san24") '("san24"))
(load (strcat lisp_path "san36") '("san36"))
(load (strcat lisp_path "san48") '("san48"))
You are using the load function, but supplying the syntax in the form required by the autoload function; change 'load' to 'autoload'.
Lee