dos_getfiled: Weird entries in text-filter
Closed this issue · 5 comments
Pierre-de-la-Verre commented
I realized it today, on Win 10, with Brics21 and Acad18: Sometimes the filter-list in dos_getfiled (where you filter *.dwg; *.dxf; *.txt or nothing) is amended with (asian?) characters or a mixture of it. I tried and got up to 4 lines - one correct, 3 wrong. Mostly it disappears the next time I use the command. Have you seen this behaviour before?
Pierre-de-la-Verre commented
dalefugier commented
Please provide code that doesn't work - thanks.
Pierre-de-la-Verre commented
Hi Dale
sorry for my delay. Here is the code and the current screenshot.
AutocadMap 2018, German
; ; ; ; Programm: example.lsp
; ; ; ; Zweck: Shows that 'dos_getfiled' gives a strange file selection when this lisp is called the first time in an AutoCAD Session.
; ; ; ;
; ; ; ; *********************************************;;
(princ (strcat "\npunktsetzmode: " (vl-princ-to-string punktsetzmode)))
(princ (strcat "\nauswahlmode: " (vl-princ-to-string auswahlmode)))
(defun c:example ()
(setq stopflag 0
koord_liste nil
koord_zaehler -1
quelldatei (dos_getfiled "Koordinatenliste wählen, Trennzeichen beachten" (dos_tempdir) "All files (*.*)|*.*")
)
)
dalefugier commented
Your filter string should look like this:
"All files (*.*)|*.*||"
See the help file for details.
Pierre-de-la-Verre commented
Thanks, Dale.
Should have seen it - sorry for the wrong "issue".
Peter