Short description

Command:
- ZEZW Main command that launches the selection dialog and triggers zoom actions.
- ZEZW Alias command (same behavior).
- _ZEZW Alias command (same behavior).
Description:
- Run ZEZW to open the layout selection dialog.
- Use the filter box with wildcards * and ? to narrow the layout list.
- Optionally toggle Include Model to show or hide MODEL in the list.
- Multi-select layouts in the list (fixed width display shows layout name and status).
- Click ZE (Zoom Extents) to zoom extents on each selected layout in Paper Space.
- Click ZW (Zoom Window) to pick two corners once, then apply the same zoom window to each selected layout in Paper Space.
- If selection is empty, the program prompts the user to select one or more layouts before running zoom.
Helper function: (if any)
- LV:GetLayouts Collects layout names using layoutlist for reliability.
- LV:FilterLayouts Applies wildcard filtering via wcmatch and optionally excludes MODEL.
- LV:MakeTempDCL Creates a robust temporary DCL path (mktemp with fallback to TEMP or DWGPREFIX).
- LV:WriteDCL Writes the dialog definition with a unique dialog name each run.
- LV:CopyClipboard Copies text via MSHTML clipboardData, with fallback to PowerShell Set-Clipboard and cmd clip.
- LV:ZoomExtentsLayouts Iterates layouts and runs COM zoom extents with command fallback ZOOM E.
- LV:ZoomWindowLayouts Prompts for a window once and applies it to all selected layouts with COM and command fallback ZOOM W.
- LV:Cleanup Unloads the dialog and deletes the temporary DCL file to avoid residue and lock issues.
- *error* handler ensures cleanup runs on unexpected failures and suppresses noise on normal cancel events.
Functionalities:
- Dialog UI with filter, multi-select list, select all, select none, and selected count display.
- Layout filtering using wildcards to quickly isolate target layout tabs.
- Clipboard export of selected layout names and their status, formatted line-by-line for paste into other tools.
- Zoom Extents across selected layouts in Paper Space with stable post-dialog execution.
- Zoom Window across selected layouts using one picked window applied consistently to all layouts.
- Paper Space enforcement by forcing MSpace false before zooming to avoid viewport context issues.
- Undo grouping using StartUndoMark and EndUndoMark for clean rollback of multi-layout operations.
- Robust fallbacks for zoom (COM first, then command-based) and for clipboard copy (multiple methods).
Result:
Images, animations etc.

Log in
