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: 🏷️ ConfigName

  • PageSetupAllLayouts

    β€”

    by

    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…