@thomas_schluesselberger hi,
Attached mpsetup.zip file contains 4 files:
mpsetup.vlx - the lisp file.
mps_supp.lsp - support the first file.
DWG to PDF - MPS.pc3 - sample plotting configuration file
mpsetup.dwg - sample drawing file.
save the pc3 file in plotter folder (with all yours pc3 files) save the lisp files (+ sample dwg) in a recognized folder by AutoCAD support files.
First open the sample drawing i made (do not rush to run it on yours) it contains 13 layouts from A4,A3 up to 150x91 cm sheets. i'm aware you are looking only solution for large sheet format but a decent program must be prepare for all sheets format. each layout contain a block called it titleblock you can replace it with your title block (the name does not matter) or just put a rectangle.
now load mpsetup.vlx in and invoke MPSETUP command.
Command: MPSETUP
Apply Plotting Configuration to Layout(s) [All/Current] <Current>:
All to set the suitable media page to each layout (according to your title block) and set the same printer. (Current obviously is for the current layout)
now if you go to pagesetup command choose my DWG to PDF - MPS.pc3 printer drop down the page size you will see there a lot of custom "User 1" papers i added.
now open mps_supp.lsp file in text editor like notepad (better in Autolisp IDE) you will see the following lines
(setq PCONFIGFILE "DWG to PDF - MPS.pc3")
(setq MEDIASTEP 100)
these are two variables that you can set, the first PCONFIGFILE your favorite printer and the second MEDIASTEP in mm. the mediastep defines the increment for the media page starting from 1200x914, 1300x914....up to 5080,914 (which is the max for pdf)
unfortunately AutoLisp does not provide us with functions (tools) to modify the pc3 media size programmaticlly and you must add yours manually (just as i did) to cover all your media pages.
program course:
tries to load mps_supp.lsp (yours favorites for printer & media step) and if it does not find it uses the defaults which is what you see now in the file than it looks for the printer file (pc3) which must lay in plotter folder. if the file is not found, program stop. the process than step into each layout to auto assign the printer + suitable media size + 1:1 scale on mm units. the layout names is echoed to the command line.
each run of MPSETUP, the current printer & media size (also plot scale & units) is saved to dwg database.
Use the RPSETUP command to restore the previous settings 😀
if it does not work for you, post the dwg.
enjoy
Moshe