-PLOT is not a Lispfunction, -PLOT is a normal native AutoCAD command, nothing to do with Lisp.
You codes crashes in other versions in the same kind.
> "Line where is breaks: right after the SLT setting..."
Exactly, at PLTSZ
I could understand your problem only if no suitable paper size is set.
Normally, the dialog should then ask for a paper size again, if you type in commandline that is working so,
but if you control -PLOT within a lisp-command statement, you get another result - the -plot command is canceled
if the papername is not available.
Check PLTSZ value before (command "-plot"
(alert (if PLTSZ PLTSZ "No PLTSZ"))
(command "-PLOT" ...
Reload the edited Lisp and try it again.
If "No PLTSZ"-Alert appears, you have a problem with you SSGET-Block statements to set the papersize.
(perhaps you edited your blocks and renamed them or you edited the block to a dynamic Block now. in this case Acad renamed your Block 😉 - )
DynBlock? Read this: Click1 or Click2
If a papersize is displayed in the alert-window, you have a problem with your available papersizes.
Perhaps it is filtered in the current pmp of the 'DWG to DWF.pc3'?
Lets check you available papersize:
command: -PLOT
yes
<current Layout>
DWG to DWF.pc3
?
You get the list of all available papersizes now.
B U T: I do not think that this ever worked properly, where do you set the DWF filename?
I do not have the a sample DWG from you, but in my own test file, there is another problem after your current issue:
Befehl: _-plot
Detaillierte Plotkonfiguration? [Ja/Nein] <Nein>: _Y
Layoutnamen eingeben oder [?] <Layout1>: Layout1
Ausgabegerätname eingeben oder [?] <DWF6 ePlot.pc3>: DWF6 ePlot.pc3
Papierformat angeben oder [?] <ISO A4 (210.00 x 297.00 mm)>: ISO A4 (210.00 x 297.00 mm)
Papiereinheiten angeben [Zoll/Millimeter] <Millimeter>: _I
Ausrichtung der Zeichnung angeben [Hochformat/Querformat] <Hochformat>: _P
Auf dem Kopf plotten? [Ja/Nein] <Nein>: _N
Plotbereich angeben [Anzeige/Grenzen/Layout/ANsicht/Fenster] <Grenzen>: _E
Plotmaßstab angeben (geplottet Zoll=Zeichnungseinheiten) oder [Anpassen] <1:1>: 1=1
Plotversatz angeben (x,y) oder [Zentrum] <Zentrum>: _C
Mit Plotstilen plotten? [Ja/Nein] <Ja>: _Y
Potstiltabellenname angeben oder [?] (. für keinen Namen) <acad.ctb>: acad.ctb
Mit Linienstärken plotten? [Ja/Nein] <Ja>: _Y
Linienstärken mit Plotmaßstab skalieren? [Ja/Nein] <Nein>: _N
Papierbereich zuerst plotten? [Ja/Nein] <Nein>: _N
Papierbereichobjekte ausblenden? [Ja/Nein] <Nein>: _N
Dateiname angeben <D:\temp\scrtest\z2-Layout1.dwf>: _N ; You should better use "DUMMY.DWF" as input, it is easier to read the code // sorry
Änderungen an der Seiteneinrichtung speichern [Ja/Nein]? <N> _Y
Plotten fortsetzen [Ja/Nein] <J>: _N
Note: Do not be surprised I translated your command content with international input
-PLOT = _-plot, "ZOOM" = "_ZOOM" and Options = YES = _YES, "e" = "_e"
(easy for you and then it is working with french, german and other languages too.
And I add one bypass for my own (existing) papersize, because the papersizes from your lisp are not one of the predefined papersizes(Names) of my AutoCAD/DWG to DWF.pc3 and THAT is cause your error.
In German the size "ANSI full bleed A (8.50 x 11.00 Inches)" is named as "ANSI full bleed A (8.50 x 11.00 Zoll)" 😉
As indicate block i used a block named as "Test".
That not a technical change and i need it for testing your code (i dont habe your printer and also not your ctb)