Only accidently, I saw your LSP - thought is like ordinary thread - answers to actual requests by OP's...
I looked at your LSP - it works very well, but I corrected some minor lacks :
This part :
...
; Check if LastDirSelected exist, if not set it to C:\\
(if (= (DA:GetCfgValue "LastDirSelected") "")
(DA:SetCfgValue "LastDirSelected" "C:\\")
)
...
Should be something like this :
...
; Check if LastDirSelected exist, if not set it to C:\\
(if (or (not (DA:GetCfgValue "LastDirSelected")) (= (DA:GetCfgValue "LastDirSelected") ""))
(DA:SetCfgValue "LastDirSelected" "C:\\")
)
...
Because - if not preset "LastDirSelected", (DA:GetCfgValue "LastDirSelected") returns not "", but nil ... Look at (get_cfg) function in Alisp Reference...
It is important that all those syntaxes with this presetting coded return values set, or later (getfiled) function that calls (DA:GetCfgValue "LastDirSelected") will be nil, making complete routine to fail when clicked on import/browse for folder - main option of left portion of Dialog Box...
Also corrected minor typo that may cause also problem - in next (getfiled) call , you coded ".csv" as file type - just checked - it should actually be only "csv" (without ".") - that's how (getfiled) accepts file extensions... Previous (getfiled) was good "dwg;dwt;dws"...
That's all from what I saw...
But, anyway, I don't know what will I/or someone else use it for...
It's little new to me...
HTH. M.R.
In attachment is *.LSP that is good - works for me... *.ODCL file is untact (same) - you can download it from GitHub...
Marko Ribar, d.i.a. (graduated engineer of architecture)