PageSetupAllLayouts

Short description

🖨️ PageSetupAllLayouts is an AutoCAD and Civil 3D AutoLISP plotting utility for batch-updating plotter configuration names across all paper-space layouts.
📄 The command loops through every layout except Model and changes each layout’s ConfigName based on the current configured plot device.

Command:

🚀 Main command: cps
🧰 Load the LSP file with APPLOAD, then run the command from the AutoCAD command line.

Description:

🖨️ PageSetupAllLayouts is an SEO-friendly AutoCAD plot-device update routine for paper-space layouts, plot configuration cleanup, and sheet plotting preparation.
📄 The routine accesses the active document through Visual LISP ActiveX, iterates through the Layouts collection, skips Model, reads each layout ConfigName, and writes a new ConfigName.
🔁 In the current code, layouts using Canon iPF770.pc3 are changed to AutoCAD PDF (High Quality Print).pc3, while other paper-space layouts are changed to Canon iPF770V2.pc3.
🧰 Although the file comment says Copy current layout page setup to all layout tabs, the implementation specifically updates plot device names through vla-put-ConfigName rather than cloning a complete page setup object.
📌 This is useful for CAD offices migrating plotter device names, replacing outdated PC3 files, repairing broken plotting devices, and preparing Civil 3D layout sheets for consistent publishing.

Helper function: (if any)​

🧩 vla-get-ActiveDocument retrieves the current AutoCAD drawing.
🧩 vla-get-Layouts accesses the layout collection.
🧩 vlax-for iterates over all layout objects.
🧩 vla-get-Name is used to skip the Model layout.
🧩 vla-get-ConfigName reads the current PC3 plot configuration assigned to each layout.
🧩 vla-put-ConfigName writes the replacement plot device name.

Functionalities:

✅ Process all paper-space layouts in the active drawing.
✅ Skip the Model tab automatically.
✅ Detect layouts currently assigned to Canon iPF770.pc3.
✅ Replace Canon iPF770.pc3 with AutoCAD PDF (High Quality Print).pc3.
✅ Assign Canon iPF770V2.pc3 to other paper-space layouts.
✅ Use Visual LISP ActiveX layout access for direct ConfigName updates.
✅ Provide a compact command for fast plot device migration.

Result:

🎯 The result is a faster plot device update workflow for AutoCAD and Civil 3D layout tabs.
🖨️ Users can update PC3 configuration names across all paper-space layouts without opening Page Setup Manager for each sheet.
✅ PageSetupAllLayouts supports plotting consistency, PDF output preparation, and office plotter migration tasks.

Images, animations etc.

Pixel

XAML code:

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:src="clr-namespace:Autodesk.Windows;assembly=AdWindows">
    
<src:RibbonToolTip x:Key="Page setup all layouts">
	<src:RibbonToolTip.ExpandedContent>
		<StackPanel>
			<TextBlock Background="AntiqueWhite" TextAlignment="Left">
				<Bold>Function Syntax: CPS</Bold>
<LineBreak/>
<Bold>Version: 1.1 Date: 20.06.2026 6:38:55PM</Bold>
				<LineBreak/>
				<Hyperlink>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-for-multiply-change-plotter-on-all-layouts/td-p/12045940</Hyperlink>
				<LineBreak/>
				<Bold>Description</Bold>
				<LineBreak/>
<Bold>Command name</Bold><LineBreak/>
<Run Foreground="DarkRed">cps</Run> (run by typing <Run Foreground="DarkRed">CPS</Run> in AutoCAD).<LineBreak/>
<Bold>What this LISP does</Bold><LineBreak/>
This routine iterates through every paper-space layout tab (all layouts except <Run Foreground="DarkRed">Model</Run>) and standardizes the plot device (printer or PC3) by switching each layout’s <Run Foreground="DarkRed">ConfigName</Run> based on its current value.<LineBreak/>
<Bold>User interaction</Bold><LineBreak/>
• No selection is required (no blocks, objects, or prompts).<LineBreak/>
• The user only needs to run the command <Run Foreground="DarkRed">CPS</Run>.<LineBreak/>
<Bold>Main logic</Bold><LineBreak/>
• Get the active AutoCAD document via <Run Foreground="DarkRed">vla-get-ActiveDocument</Run> on <Run Foreground="DarkRed">vlax-get-acad-object</Run>.<LineBreak/>
• Retrieve the document layouts collection via <Run Foreground="DarkRed">vla-get-Layouts</Run>.<LineBreak/>
• Loop all layouts using <Run Foreground="DarkRed">vlax-for</Run>.<LineBreak/>
• Skip layout named <Run Foreground="DarkRed">Model</Run> (only paper-space tabs are modified).<LineBreak/>
• For each remaining layout, read its current plot device using <Run Foreground="DarkRed">vla-get-ConfigName</Run> and then set a new device using <Run Foreground="DarkRed">vla-put-ConfigName</Run>.<LineBreak/>
<Bold>Device switching rules</Bold><LineBreak/>
• If the layout plot device equals <Run Foreground="DarkRed">Canon iPF770.pc3</Run>, then set it to <Run Foreground="DarkRed">AutoCAD PDF (High Quality Print).pc3</Run>.<LineBreak/>
• Otherwise (any other device), set it to <Run Foreground="DarkRed">Canon iPF770V2.pc3</Run>.<LineBreak/>
<Bold>Functionalities</Bold><LineBreak/>
• Bulletproof batch-update of plot device across all paper-space layouts in the drawing.<LineBreak/>
• Ensures that any layout currently using <Run Foreground="DarkRed">Canon iPF770.pc3</Run> is redirected to a high-quality PDF output device.<LineBreak/>
• Forces every other layout device to a specific target device <Run Foreground="DarkRed">Canon iPF770V2.pc3</Run> for consistency.<LineBreak/>
<Bold>Important notes</Bold><LineBreak/>
• This will overwrite the plot device setting for every layout tab except <Run Foreground="DarkRed">Model</Run>.<LineBreak/>
• It does not copy page setup properties like paper size, plot style table, plot area, or scale; it only changes the device referenced by <Run Foreground="DarkRed">ConfigName</Run>.<LineBreak/>
• The PC3 names must exist on the machine; if a referenced PC3 is missing, plotting or configuration may fail later.<LineBreak/>



<Bold><Run Foreground="DodgerBlue">Description</Run></Bold><LineBreak/>
<Run Foreground="White">🖨️ PageSetupAllLayouts is an AutoCAD and Civil 3D AutoLISP plotting utility for batch-updating plotter configuration names across all paper-space layouts.</Run><LineBreak/>
<Run Foreground="White">📄 The command loops through every layout except Model and changes each layout's ConfigName based on the current configured plot device.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Function Syntax</Run></Bold><LineBreak/>
<Run Foreground="White">🚀 Main dialog command: </Run><Bold><Run Foreground="Orange">cps</Run></Bold><LineBreak/>
<Run Foreground="White">🧰 Load the LSP with APPLOAD and run the command in AutoCAD or Civil 3D.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">SEO Optimized Overview</Run></Bold><LineBreak/>
<Run Foreground="White">🖨️ PageSetupAllLayouts is an SEO-friendly AutoCAD plot-device update routine for paper-space layouts, plot configuration cleanup, and sheet plotting preparation.</Run><LineBreak/>
<Run Foreground="White">📄 The routine accesses the active document through Visual LISP ActiveX, iterates through the Layouts collection, skips Model, reads each layout ConfigName, and writes a new ConfigName.</Run><LineBreak/>
<Run Foreground="White">🔁 In the current code, layouts using Canon iPF770.pc3 are changed to AutoCAD PDF (High Quality Print).pc3, while other paper-space layouts are changed to Canon iPF770V2.pc3.</Run><LineBreak/>
<Run Foreground="White">🧰 Although the file comment says Copy current layout page setup to all layout tabs, the implementation specifically updates plot device names through vla-put-ConfigName rather than cloning a complete page setup object.</Run><LineBreak/>
<Run Foreground="White">📌 This is useful for CAD offices migrating plotter device names, replacing outdated PC3 files, repairing broken plotting devices, and preparing Civil 3D layout sheets for consistent publishing.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="LimeGreen">Primary Workflow</Run></Bold><LineBreak/>
<Run Foreground="White">1️⃣ Load PageSetupAllLayouts into AutoCAD or Civil 3D with APPLOAD.</Run><LineBreak/>
<Run Foreground="White">2️⃣ Run cps from the command line.</Run><LineBreak/>
<Run Foreground="White">3️⃣ Use the dialog or command prompts to select the target layouts, layers, viewports, or plot settings.</Run><LineBreak/>
<Run Foreground="White">4️⃣ Review the preview, status list, or command-line feedback before applying changes.</Run><LineBreak/>
<Run Foreground="White">5️⃣ Apply the operation and verify the result in the active drawing.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Main Functionalities</Run></Bold><LineBreak/>
<Run Foreground="White">✅ Process all paper-space layouts in the active drawing.</Run><LineBreak/>
<Run Foreground="White">✅ Skip the Model tab automatically.</Run><LineBreak/>
<Run Foreground="White">✅ Detect layouts currently assigned to Canon iPF770.pc3.</Run><LineBreak/>
<Run Foreground="White">✅ Replace Canon iPF770.pc3 with AutoCAD PDF (High Quality Print).pc3.</Run><LineBreak/>
<Run Foreground="White">✅ Assign Canon iPF770V2.pc3 to other paper-space layouts.</Run><LineBreak/>
<Run Foreground="White">✅ Use Visual LISP ActiveX layout access for direct ConfigName updates.</Run><LineBreak/>
<Run Foreground="White">✅ Provide a compact command for fast plot device migration.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Important Commands and Helper Functions</Run></Bold><LineBreak/>
<Run Foreground="White">🧩 vla-get-ActiveDocument retrieves the current AutoCAD drawing.</Run><LineBreak/>
<Run Foreground="White">🧩 vla-get-Layouts accesses the layout collection.</Run><LineBreak/>
<Run Foreground="White">🧩 vlax-for iterates over all layout objects.</Run><LineBreak/>
<Run Foreground="White">🧩 vla-get-Name is used to skip the Model layout.</Run><LineBreak/>
<Run Foreground="White">🧩 vla-get-ConfigName reads the current PC3 plot configuration assigned to each layout.</Run><LineBreak/>
<Run Foreground="White">🧩 vla-put-ConfigName writes the replacement plot device name.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="LimeGreen">Practical Result</Run></Bold><LineBreak/>
<Run Foreground="White">🎯 The result is a faster plot device update workflow for AutoCAD and Civil 3D layout tabs.</Run><LineBreak/>
<Run Foreground="White">🖨️ Users can update PC3 configuration names across all paper-space layouts without opening Page Setup Manager for each sheet.</Run><LineBreak/>
<Run Foreground="White">✅ PageSetupAllLayouts supports plotting consistency, PDF output preparation, and office plotter migration tasks.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="DarkRed">Important Notes</Run></Bold><LineBreak/>
<Run Foreground="White">⚠️ The command name is cps.</Run><LineBreak/>
<Run Foreground="White">⚠️ The current logic is hard-coded to Canon iPF770.pc3, AutoCAD PDF (High Quality Print).pc3, and Canon iPF770V2.pc3.</Run><LineBreak/>
<Run Foreground="White">⚠️ The routine does not copy a full named page setup; it updates the ConfigName property only.</Run><LineBreak/>
<Run Foreground="White">⚠️ The specified PC3 files must exist and be valid in the AutoCAD plotting environment.</Run><LineBreak/>
<Run Foreground="White">⚠️ Review the hard-coded plotter names before using the routine in another office or workstation.</Run><LineBreak/>
<LineBreak/>
<Bold><Run Foreground="Yellow">Tags</Run></Bold><LineBreak/>
<Run Foreground="Yellow">🏷️ AutoCAD, 🏷️ Civil 3D, 🏷️ AutoLISP, 🏷️ Visual LISP, 🏷️ DCL dialog, 🏷️ CAD automation, 🏷️ CAD productivity, 🏷️ Page setup, 🏷️ Plot device, 🏷️ PC3, 🏷️ ConfigName, 🏷️ Plotter migration, 🏷️ AutoCAD PDF, 🏷️ Layout plotting, 🏷️ Paper space, 🏷️ Batch plot setup, 🏷️ Publishing, 🏷️ cps</Run><LineBreak/>



</TextBlock>
                
                <!-- Use MediaElement for GIF (static first frame) and Image as fallback -->






            </StackPanel>
        </src:RibbonToolTip.ExpandedContent>
    </src:RibbonToolTip>
	
	
	
</ResourceDictionary>

Share this page:

Page Tag: 🏷️ CAD Automation

  • PageSetupAllLayouts

    Short description🖨️ PageSetupAllLayouts is an AutoCAD and Civil 3D AutoLISP plotting utility for batch-updating plotter configuration names across all paper-space layouts. 📄 The command loops through every layout except Model and changes each layout’s ConfigName based on the current configured plot device. Command:🚀 Main command: cps 🧰 Load the LSP file with APPLOAD, then run…

  • Delete2Layouts

    Short description🗑️ Delete2Layouts is an AutoCAD AutoLISP utility for deleting all instances of one selected block or xref from chosen paper-space layouts. 🗂️ It provides a temporary DCL dialog with layout filtering, Select All/None controls, and a clear delete workflow for layout-based cleanup. Command:🚀 Main command: Delete2Layouts 🔁 Alias command: _Delete2Layouts 🧰 Pick one block…

  • CopyPaper2Model

    Short description🔁 CopyPaper2Model is an AutoCAD and Civil 3D AutoLISP utility for transferring objects between Paper Space and Model Space through layout viewports. 📐 It uses viewport context, CHSPACE, VLA copy logic, layout filtering, and temporary DCL dialogs to preserve scale and placement during production drawing cleanup. Command:🚀 Main auto command: CPMS 📄 Paper Space…

  • LayerImport

    Short description🧩 LayerImport is an AutoCAD and Civil 3D AutoLISP layer standards importer for restoring layer properties from CSV or XML files through a production-friendly DCL interface. 📥 It is designed for CAD template recovery, layer-state transfer, project standardization, and Civil 3D drawing cleanup where layer properties must be copied accurately between drawings. Command:🚀 Main…

  • Xline2Poly

    Short descriptionConverts AutoCAD XLINE and RAY entities into finite LWPOLYLINE segments using configurable offsets and a dialog-based workflow. Command:Xline2Poly Xline2Poly_DEBUG Description:Xline2Poly is an AutoLISP utility that converts infinite XLINE entities and semi-infinite RAY entities into finite two-vertex LWPOLYLINE objects. It provides a temporary DCL interface for selecting objects, filtering by type/layer/handle, configuring conversion distances, applying…

  • Poly2Xline

    Short descriptionConverts selected LINE, LWPOLYLINE, POLYLINE, ARC, and SPLINE entities into AutoCAD XLINE geometry using a DCL selection dialog. Command:L2XL L2XL_DEBUG Description:Poly2Xline is an AutoLISP utility for converting finite AutoCAD curve geometry into construction XLINE objects. It supports LINE, LWPOLYLINE, POLYLINE, ARC, and SPLINE selections, converts every extracted segment into one XLINE, and offers a…

  • ParallelPipes.NET

    Short descriptionAutoCAD / Civil 3D .NET plug-in for placing multiple parallel Profile_000 pipe bundles between selected boundary curves with live model-space preview, profile management, radius presets, offset-layer control, grouping, logging, and undo support. Command:NETLOAD ParallelPipesNet.dll, then run VTPCS at the AutoCAD command line. Description:ParallelPipes.NET is a managed C# / .NET Framework 4.8 port of the…

  • ReplaceBlock

    Short description🔄 ReplaceBlock is an AutoCAD AutoLISP utility that replaces selected block references with another block definition from the active drawing while keeping the original insertion point, scale, rotation, layer, and color. Command:🚀 Command syntax: ReplaceBlock Type ReplaceBlock in the AutoCAD command line, select one or more block references, choose the replacement block from the…

  • NavvCubeDisplayOffOn

    Short description🧭 NavvCubeDisplayOffOn is a compact AutoCAD AutoLISP utility for resetting the Navigation Cube display state with one command. 🔄 It runs the AutoCAD NAVVCUBEDISPLAY command sequence automatically, helping CAD users restore the ViewCube or NavVCube display without searching through interface settings. Command:🚀 Main command: NavvCubeDisplayOffOn 🧰 AutoCAD system command used internally: NAVVCUBEDISPLAY 🔄 Internal…

  • ExpImpUCS

    Short description🧭 ExpImpUCS is an AutoCAD and Civil 3D AutoLISP utility for exporting and importing named UCS definitions through a practical DCL dialog. 📤 It helps CAD users save UCS setups to portable .ucs files, restore coordinate systems in another drawing, and reuse project-specific UCS_Lageplan folders with fewer manual steps. Command:🚀 Main command: ExpImpUCS 📤…