a stupid and dangerous solution:
change extensions of files that do not meet your criteria to, let's say, "dwg1", before calling getfiled. and then restore.
Registered forum members do not see this ad.
Hi everyone,
I'm looking for a way to get 'getfiled' to display only a filtered selection of a given folder, i.e. only 'AA06-*.dwg'...(with wildcards)
I did find ways to filter the list after the 'getfiled' call, but I would like to filter before, in order to display only the files meeting the filter criteria... I'm looking into 'getfiled' because the dwg preview is needed...
The ideal would be to be allowed something like this:
(setq blk-ins (getfiled "Select Block" "c:\\folder\\AA06-*.dwg" "dwg" 8 ))
Any ideas?
Thanks in advance,
Jocelyn


a stupid and dangerous solution:
change extensions of files that do not meet your criteria to, let's say, "dwg1", before calling getfiled. and then restore.
I think that is a possible solution.
DOS_GETFILED in doslib from McNeel does have a filter function, but as far as I can se no preview.
PHP Code:(getfiled "GETFILED" "c:/programfiler/AutoCAD 2008/support/" "dwg" 8)
(dos_getfiled "DOS_GETFILED" "c:/programfiler/AutoCAD 2008/support/" "Files like '*ch*'|*ch*.dwg" 8)
Registered forum members do not see this ad.
I just got this from McNeel:Hi Ragnar,
Check the DOSLib help file for the DOS_GETFILENAV function. It works like the AutoLISP GETFILED function, but will display a preview image for DWG files.
Dale Fugier
Robert McNeel & Associates
Bookmarks