Function Syntax: LZW AI+https://www.cadtutor.net/forum/topic/41748-zoom-extend-all-layouts/ Version: 2 Date: 29.12.2025 LZW description This program requires the user to select one or more Layouts from a DCL dialog, then it prompts the user to pick a window and applies Zoom Window in Paper Space on each selected layout after the dialog closes. LZW commandLZW runs Zoom Window on selected layouts in Paper Space. LZW user workflow • Run LZW. • A DCL dialog opens with a multi-select list of Layouts. • Optional toggle Include Model controls whether MODEL appears in the list. • Filter layouts with wildcards * and ?, then multi-select the target layouts. • Use Select All or Select None to manage selection quickly. • Optional action Copy to Clipboard copies selected layout names and their status. • Trigger the zoom action, the dialog closes, and the program prompts for two corners to define the zoom window. • If the user cancels point picking, the routine cancels the action and restores the previous tab. LZW functionalitiesDialog UI for filtering and multi-selecting layouts.Layout filtering using wcmatch with wildcard patterns.Selection tools including Select All, Select None, and selected count display.Clipboard export using MSHTML clipboardData with fallback to PowerShell Set-Clipboard and cmd clip.Stable execution by running zoom after the dialog closes.Undo grouping using StartUndoMark and EndUndoMark for clean undo.Temporary DCL creation with mktemp and fallback pathing, followed by cleanup. LZW zoom behavior • Switches to the first selected layout before prompting so the user sees the correct context. • Prompts for window corners using getpoint and getcorner once, then reuses the same window for all selected layouts. • Iterates selected layouts by switching CTAB for each layout and applies the same zoom window. • Forces MSpace false so zoom occurs in Paper Space rather than inside a viewport. • Attempts COM zoom first using vla-ZoomWindow and falls back to ZOOM W if COM fails. • Restores the previous CTAB after processing all layouts. LZW safeguards and cleanup • Ensures layouts are enabled by setting TILEMODE to 0 when needed. • Uses an error handler to guarantee dialog unload and temporary DCL deletion on cancel or error. • Excludes MODEL from execution unless explicitly included and valid for the action.