I'm writing a little program that should batch plot pdf's Unfortuately a dialog box appears even though Filedia=0 How can I get rid of this? I have used similar code below to batch plot dwf's and it works fine. thank if you can help Russ (if (equal Printer "TESTPDF") (progn (setq layouts_to_plot (dos_multilist "Plot Layouts" "Select layouts" (layoutlist))) (setq NumTabs (length layouts_to_plot)) (foreach LLN layouts_to_plot (layoutlist) (setvar "CTAB" LLN) (setvar "FILEDIA" 0) (command "-plot" "NO" "" "" "TESTPDF.pc3" LLN "NO" "YES" );problem here why does dialog box appear? );foreach );progn );if