First of all why don't you contact Sean Boseman who copyrighted (c) 2014 this lisp function?
As to why it's failing now, perhaps the name of your print server has changed:
"\\\\print\\SALES_KM_C558"
Or the paper sizes available on that print device has also changed:
"11x17"
On your own you can manually go through the plot sequence on the command line to check to see at what prompt the plot command sequence fails.
As for PDF again you can do this on your own by looking through the prompts and responses on the command sequence.
You may want to set FILEDIA to 0 before starting.
Also remember to set FILEDIA back to 1 afterwards otherwise you won't see any of the FILE Open/Save dialog window.
Here's the Plot sequence in your lisp for Paperspace which only saves changes to Page Settings but does NOT Plot:
(command "-plot" "y" "" "\\\\print\\SALES_KM_C558" "11x17" "inches" "landscape" "no" "extents" "fit" "center" "no" "" "yes" "no" "no" "no" "no" "yes" "no")
"" = a return accepting the current prompt without making any changes
Here's how the command sequence looks like for generating a PDF using Dwg To Pdf.pc3 on ANSI B (17.00 x 11.00 Inches) paper size which only saves changes to Page Settings but does NOT Plot::
Command: FILEDIA
Enter new value for FILEDIA <1>: 0
Command: _.TILEMODE
Enter new value for TILEMODE <1>: 0
Command: _.-PLOT
Detailed plot configuration? [Yes/No] <No>: _Yes
Enter a layout name or [?] <Layout1>:
Enter an output device name or [?] <None>: Dwg To Pdf.pc3
Enter paper size or [?] <ANSI B (17.00 x 11.00 Inches)>: ANSI B (17.00 x 11.00 Inches)
Enter paper units [Inches/Millimeters] <Inches>: _Inches
Enter drawing orientation [Portrait/Landscape] <Portrait>: _Landscape
Plot upside down? [Yes/No] <No>: _No
Enter plot area [Display/Extents/Layout/View/Window] <Layout>: _Extents
Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <1:1>: _Fit
Enter plot offset (x,y) or [Center] <0.00,0.00>: _Center
Plot with plot styles? [Yes/No] <Yes>: _No
Enter plot style table name or [?] (enter . for none) <>:
Plot with lineweights? [Yes/No] <Yes>: _Yes
Scale lineweights with plot scale? [Yes/No] <No>: _No
Plot paper space first? [Yes/No] <No>: _No
Hide paperspace objects? [Yes/No] <No>: _No
Enter file name <Drawing1-Layout1.pdf>:
Save changes to page setup [Yes/No]? <N> _Yes
Proceed with plot [Yes/No] <Y>: _No
Command: FILEDIA
Enter new value for FILEDIA <0>: 1
Here's your lisp code on the Plot sequence for Modelspace which only saves changes to Page Settings but does NOT Plot:
(command "-plot" "y" "" "\\\\print\\SALES_KM_C558" "11x17" "inches" "landscape" "no" "extents" "fit" "center" "no" "" "yes" "as" "no" "yes" "no")
Here's how the command sequence looks like for generating a PDF using Dwg To Pdf.pc3 on ANSI B (17.00 x 11.00 Inches) paper size which only saves changes to Page Settings but does NOT Plot:
Command: _.FILEDIA
Enter new value for FILEDIA <1>: 0
Command: _.TILEMODE
Enter new value for TILEMODE <0>: 1
Command: _.-PLOT
Detailed plot configuration? [Yes/No] <No>: _Yes
Enter a layout name or [?] <Model>:
Enter an output device name or [?] <None>: Dwg To Pdf.pc3
Enter paper size or [?] <ANSI B (17.00 x 11.00 Inches)>: ANSI B (17.00 x 11.00 Inches)
Enter paper units [Inches/Millimeters] <Inches>: _Inches
Enter drawing orientation [Portrait/Landscape] <Portrait>: _Landscape
Plot upside down? [Yes/No] <No>: _No
Enter plot area [Display/Extents/Limits/View/Window] <Display>: _Extents
Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <Fit>: _Fit
Enter plot offset (x,y) or [Center] <0.00,0.00>: _Center
Plot with plot styles? [Yes/No] <Yes>: _No
Enter plot style table name or [?] (enter . for none) <>:
Plot with lineweights? [Yes/No] <Yes>: _Yes
Enter shade plot setting [As displayed/legacy Wireframe/legacy Hidden/Visual styles/Rendered] <As displayed>: _As
Enter file name <Drawing1-Model.pdf>:
Save changes to page setup [Yes/No]? <N> _Yes
Proceed with plot [Yes/No] <Y>: _No
Command: _.FILEDIA
Enter new value for FILEDIA <0>: 1
Notice that the only change you need to make to actually proceed with plotting is responding to the last prompt on Proceed with plot with a Yes instead of a No.