- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to follow the example given in this AU handout by Paul Munford (AU2015, IT10856).
The basic idea is to create a ACAD.lsp, which loads another lisp which in turn loads the necessary settings and profiles. For some reason, I cannot get the second lisp to load. The code line is simply
(load "B:\\Autodesk\\AutoCAD\\scripts_and_lisps\\testfile.lsp" "Load Failed")
The "load failed" -string is supposed to print on the console if the load failed, right? And if it succeeds it should run all the code in the second lisp-file, right? I placed a (printc "test1")-line right in the beginning of both lisps just to check if they run. The second "test" doesn't show up on the console when I place the ACAD.lsp in the support folder.
Do I need to set some variables to allow the ACAD to load from outside trusted locations? I tried setting "Secureload" to 0... still nothing...
@PaulMunford can you elaborate?
Btw, should one of the strings on page 21 have an extra "\\" in the beginning or end (where the ***-strings are below)?
(setq lisp_path “U:\\Support_2016***”) ; sets the path (if (findfile (strcat lisp_path "***init.lsp")) ;If you can find a file called ‘init.lsp’ (load (strcat lisp_path "***init.lsp")) ) ;Load the file called ‘init.lsp’
Solved! Go to Solution.