Message 1 of 9
New FINDFILE and LOAD Behavior (R2015+)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Have a look at the following and observe the new behavior of FINDFILE and LOAD.
The current directory is still searched, as finding a DWG file was successful, however not for a LSP file.
I have not the opportunity to test other file types as to what could and what could not searched.
Command: (getvar "dwgprefix") "C:\\Users\\xxxx\\AppData\\Roaming\\yyyy\\Menu\\" Command: (getvar "dwgname") "0-Drawing1.dwg" Command: (getvar "trustedpaths") "C:\\Users\\xxxx\\appdata\\roaming\\yyyy\\..." Command: (findfile "0-atl.dwg") "C:\\Users\\xxxx\\AppData\\Roaming\\yyyy\\Menu\\0-atl.dwg" Command: (findfile "0-ads.lsp") nil Command: (findfile (strcat (getvar "dwgprefix") "0-ads.lsp")) "C:\\Users\\xxxx\\AppData\\Roaming\\yyyy\\Menu\\0-ads.lsp" Command: (findtrustedfile "0-ads.lsp") nil Command: (findtrustedfile (strcat (getvar "dwgprefix") "0-ads.lsp")) "C:\\Users\\xxxx\\AppData\\Roaming\\yyyy\\Menu\\0-ads.lsp" Command: (findfile "test.lsp") nil Command: (findfile (strcat (getvar "dwgprefix") "test.lsp")) "C:\\Users\\xxxx\\AppData\\Roaming\\yyyy\\Menu\\test.lsp" Command: (load "test") ; error: LOAD failed: "test" Command: (load (strcat (getvar "dwgprefix") "test")) ...test loaded.
We switched to R2016 earlier this year and this week is the first time I had opportunity
to continue developing. R2014 did not behave in this manner.
Online documentation does show a revised FINDFILE function, but not in this manner.
Online documentation does not even mention this new LOAD behavior.
Has anyone else noticed this new behavior?
Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.