Attached is an improved version of getfiled that implements powershell with the option to select single or multiple files returning a list of the selected item(s):
Examples:
(pl:getfiledps "Select Files" (getvar"dwgprefix") "dwg" 0) ; for single selection of file type dwg
(pl:getfiledps "Select Files" (strcat (getenv "userprofile") "\\downloads") "dwg;dxf" 1) ; for multiple selection of file types dwg & dxf
Feedback & comments are welcome.
pl_getfiledps.lsp
I'm not going to troubleshoot it since Powershell is blocked at work, but if the load has that error, then it's something in the Code, probable in the DCL write-line part.
From @Steven P's thread.
AutoLISP Code
Scroll down to
Blk_Lib.lsp
Blk_Lib.dcl
Blk_Lib.doc
Also some information on making these types of DCL.
Getting Started with Dcl Dialogs just scroll down for DCLs with slide images and Image buttons.
This is pretty good as well.
https://www.theswamp.org/index.php?topic=20878.msg253445#msg253445