Batch Plot
batch_plotPlot AutoCAD layouts to PDF in batch, outputting one row per sheet with verified MediaBox and paper size.
Instructions
AutoCAD's PUBLISH for a PDF set, through drawing_export_pdf(layout=…).
One row per sheet: path, bytes, and mediabox_mm parsed from the
PDF that was written (/MediaBox, points → mm), with paper naming the
catalogue size it matches within 0.5 mm — so the sheet size is verified,
never assumed. Model space is included only when named.
Refused before any file is written: a format other than pdf, an empty
layouts list, a layout that does not exist, a file_pattern containing a
path separator or lacking {layout} when more than one sheet is plotted,
and any output path outside the allowed directories. A sheet whose PDF has
no readable MediaBox is reported with mediabox_mm: null and an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | pdf (the only format this release plots). | |
| layouts | No | Layouts to plot; omit for every paper-space layout. 'Model' only when named. | |
| output_dir | Yes | Folder for the PDFs (created if missing). | |
| file_pattern | No | File name per sheet; {drawing} and {layout} are substituted. | {drawing}-{layout}.pdf |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||