Function Syntax: LZE Version: 2 Date: 29.12.2025 AI+https://www.cadtutor.net/forum/topic/41748-zoom-extend-all-layouts/ LZE description This program requires the user to select one or more Layouts from a DCL dialog, then it applies Zoom Extents in Paper Space on each selected layout after the dialog closes. LZE commandLZE runs Zoom Extents on selected layouts in Paper Space. LZE user workflow • Run LZE. • 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 zoom executes after close for stability. LZE 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. LZE zoom behavior • Iterates selected layouts by switching CTAB for each layout. • Forces MSpace false so zoom occurs in Paper Space rather than inside a viewport. • Attempts COM zoom first using vla-ZoomExtents and falls back to ZOOM E if COM fails. • Restores the previous CTAB after processing all layouts. LZE 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.