Apply a Named Page Setup to Multiple Layouts with AutoLISP
Plan a reliable AutoLISP workflow for copying approved Page Setup settings instead of retyping printer, paper, CTB and scale values on every Layout.
Main idea: Treat a named Page Setup as the source of truth and copy its plot settings rather than reconstructing them property by property when possible.
Best use: Standardizing many Layouts in one DWG after a controlled Page Setup has been tested.
Start with the manual workflow
Create or import one named Page Setup and prove it with Plot Preview on a representative Layout.
Before automating a production workflow, review How to Apply One Page Setup to Multiple AutoCAD Layouts, How to Import a Page Setup from a DWT Template, and AutoCAD Page Setup Manager Explained.
Build the automation in small layers
Step 1 — Create the source standard
Where: PAGESETUP
Do this: Build/import the approved named Page Setup.
Check: It plots correctly manually.
Step 2 — Identify the target Layouts
Where: Layout tabs / layoutlist
Do this: Decide whether Model is excluded and whether any Layouts are exceptions.
Check: The batch scope is explicit.
Step 3 — Read or copy plot settings
Where: PlotConfiguration/Layout object model
Do this: Use the source configuration as the reference instead of hard-coded values.
Check: The same standard can be updated centrally.
Step 4 — Apply to one Layout
Where: Test Layout
Do this: Copy/apply the setup and inspect the resulting properties.
Check: The Layout matches the source.
Step 5 — Expand and verify
Where: Remaining Layouts
Do this: Apply to the intended set and Preview representative sizes.
Check: Exceptions are recorded instead of silently forced.
Prefer standards objects over duplicated hard-coded values
If your office already maintains named Page Setups in a DWT, that standard contains more than a printer name. It represents a tested combination of device, paper, plot area, scale, orientation and plot style behavior. Automation should reuse that standard whenever practical.
This also makes maintenance easier. When the approved setup changes, CAD management updates the source standard and the automation still has one authoritative reference. Hard-coding the same ten properties in five different LSP files creates five places that can drift apart.
What the code should control
- Named PlotConfiguration/Page Setup
- Layout selection
- Printer/PC3
- Canonical media
- CTB/STB
- Plot area, scale and orientation
What you should deliberately leave manual at first
Keep unusual sheets and deliberately different plotters outside the first batch until the standard mapping is documented.
Failure modes to design for
- The source Page Setup references a PC3 missing on another workstation.
- A drawing uses a different CTB/STB mode.
- A custom paper size is unavailable on the target driver.
- The automation assumes every Layout should be identical.
When this becomes a production tool
Add a dry-run report that shows which Layouts will change before applying the Page Setup. That is the difference between a useful office tool and a blind batch edit.
Official Autodesk references
Frequently asked questions
Should I automate every Page Setup property separately?
Not necessarily. If you already have a controlled Page Setup, copying from that standard can reduce duplicated logic.
Can Model and paper-space Layouts use the same setup?
They often require different plot-area/scale logic. Exclude Model unless the workflow explicitly supports it.
What should the routine verify afterward?
Device, media, plot style, plot area, scale and orientation on representative Layouts.
Explore more in AutoLISP Plotting & PDF Automation.
