Zoom Extend

Short description

LZE summary LZE opens a DCL selection dialog for Layouts, then runs Zoom Extents in Paper Space on the selected layouts after the dialog closes. Key stability rule The zoom action is executed after the dialog closes to avoid UI timing issues.
zoomextend 000

Command:

Command
  • LZE Runs Zoom Extents on selected layouts in Paper Space.

Description:

User workflow
  • Run LZE.
  • Select one or more Layouts from the list.
  • Optional filter using wildcards * and ?.
  • Optional toggle Include Model to show MODEL in the list.
  • Optional Copy to Clipboard to copy selected layout names and status.
  • Trigger Zoom Extents, the dialog closes, then zoom is applied to each selected layout tab.
Execution context The routine forces MSpace false so the zoom happens in Paper Space rather than inside a viewport.

Helper function: (if any)​

Helper functions and mechanisms
  • GetLayouts reads available layouts using layoutlist.
  • FilterLayouts applies wildcard filtering using wcmatch and optional Model inclusion.
  • WriteDCL builds a temporary DCL file with a unique dialog name per run.
  • CopyClipboard copies text via htmlfile clipboardData with PowerShell and clip fallback.
  • ZoomExtentsLayouts iterates CTAB across layouts and runs Zoom Extents with COM then command fallback.
  • Cleanup unloads the dialog and deletes the temporary DCL file.

Functionalities:

Functionalities
  • Dialog UI for filtering and multi-selecting layouts.
  • Select All and Select None selection tools and selected count display.
  • Clipboard export of selected layout names and status.
  • Zoom Extents in Paper Space across the selected layouts.
  • Undo grouping for multi-layout operations using StartUndoMark and EndUndoMark.
  • Robust fallbacks for temp DCL creation and zoom execution.

Result:

Result After selection in the dialog, LZE switches through the chosen layout tabs and applies Zoom Extents in Paper Space, restoring the original tab when finished. Tags CAD, General_AutoCAD, Extra_AutoCAD, Lisp, Layouts, Paper Space, Viewports, DCL, Dialog_UI, Clipboard Suggest relevant tags not in the list Zoom, Wildcards, Undo, Selection_UI, Temp_File_Handling

Images, animations etc.

zoomextend 000
Pixel

Additional info:

Share this page:

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Tags: CAD, Clipboard, DCL, Dialog_UI, Extra_AutoCAD, General_AutoCAD, Layouts, Lisp, Paper Space, Viewports
0
Would love your thoughts, please comment.x
()
x