Thanks Working perfect
Are you sure?
Keith's code completely ignores the getstring user input.
You are correct
His initial problem was that pressing enter in GETSTRING returns an empty string thus an empty string was always returned.
Pressing enter will now return the name of the drawing, however, it will not return the value captured by GETSTRING because it is never stored.
In order to resolve this issue, the function would need to be altered.
I wouldn't have attempted to write it in this manner.
I would have written it something like this:
(defun c:test
(/ fn pr pf
) (setq pr
(strcat "\nEnter filename prefix: < " fn
" >?: ")) )
pf
)