DuplicateLayouts_00

Short description

  • Shows a DCL dialog to choose paper-space layouts and specify how many copies to create for each, then duplicates the selected layouts using the LAYOUT command.
  • Provides a summary list where selected layouts and their copy counts can be reviewed and removed before running the duplication.
duplicatelayouts 000

Command:

  • Command: DuplicateLayouts

Description:

  • Creates a temporary DCL file at runtime and opens a dialog listing available layouts (excluding Model).
  • Allows the user to assign a Number of copies to the currently highlighted layout using Set Count, building an internal map of LayoutName → CopyCount.
  • Shows the chosen layouts and counts in a summary list; the user can remove entries via Delete prior to execution.
  • On OK, duplicates each selected layout the requested number of times by calling ._layout _copy and naming copies with an incremented numeric suffix (e.g., Layout_01, Layout_02).

Helper function: (if any)​

  • writeDCL writes the dialog definition to a temporary .dcl file used for the session.
  • getLayoutNames enumerates document layouts via ActiveX, excluding Model, and builds the available layout list displayed in the dialog.
  • updateSummary repopulates the summary list box from the internal layoutMap so the UI reflects current selections and counts.
  • action_tile \”set\” reads the selected layout index and copy count, then inserts or replaces the layout entry inside layoutMap.
  • action_tile \”delete\” removes the highlighted summary entry from layoutMap and refreshes the summary list.
  • c:DuplicateLayouts controls the full lifecycle: DCL creation, list population, dialog execution, cleanup, and layout copy execution.

Functionalities:

  • Runtime DCL generation creates and deletes a temporary dialog file automatically.
  • Layout list shows available paper-space layouts and excludes Model from duplication choices.
  • Per-layout copy counts lets the user assign different copy quantities per selected layout using the Set Count workflow.
  • Summary management displays the configured list of layouts and counts and allows removal via Delete prior to running copies.
  • Automated naming generates new layout names by appending a two-digit sequence suffix to the source layout name.
  • Command-based duplication performs duplication using ._layout _copy for each requested copy instance.

Result:

  • If the user clicks OK, each selected layout is duplicated the specified number of times and new layouts are created with incremented suffix names.
  • If the user cancels, no layouts are duplicated and the routine exits after removing the temporary DCL file.
  • Always unloads the dialog and deletes the generated DCL file after closing the UI.
  • If the dialog fails to load, prints DCL failed. and exits without changes.

Images, animations etc.

duplicatelayouts 000
duplicatelayouts 001
duplicatelayouts 002
duplicatelayouts 003
duplicatelayouts 004
Pixel

Additional info:

Share this page:

Leave a Reply

Page Tag: 🏷️ Layouts

  • DuplicateLayouts_00

    Short description Shows a DCL dialog to choose paper-space layouts and specify how many copies to create for each, then duplicates the selected layouts using the LAYOUT command. Provides a summary list where selected layouts and their copy counts can be reviewed and removed before running the duplication. Command: Command: DuplicateLayouts Description: Creates a temporary…

  • AnnoAllOn

    Short description Opens a DCL picker to choose Model and Layout tabs, then sets ANNOALLVISIBLE to 1 on the selected tabs. Includes quick selection controls for All and None before applying changes. Command: Command: AAON Description: Generates a temporary DCL dialog at runtime listing all tabs, including Model, with multi-select enabled. On confirmation, switches to…

  • Copy2Layouts

    Short description📄 Copy2Layouts is an AutoCAD and Civil 3D AutoLISP utility for copying selected objects from the current drawing to multiple paper-space layouts from one DCL dialog. 🔍 It adds a wildcard layout filter, Select All / Select None, total selected object count, and VLA CopyObjects automation for faster sheet layout replication. Command:🚀 Main command:…

  • LockAllVp

    Short description🔒 AutoCAD layout viewport lock manager for locking or unlocking PaperSpace viewports in selected layouts from a DCL dialog. Command:LOCKALLVP, LockAllVp, _LOCKALLVP Description:🔒 LockAllVp is an AutoLISP / Visual LISP utility for batch locking and unlocking PaperSpace viewports across selected AutoCAD layouts. 🧭 It is designed for sheet-production workflows where plotted layouts must keep…

  • All_Layouts_list

    Short description📋 AutoCAD layout list dialog for filtering, multi-selecting, and copying layout names from a drawing. Command:All_Layouts_list, ALL_LAYOUTS_LIST Description:📋 All_Layouts_list is an AutoLISP DCL utility that lists all AutoCAD layouts in tab order and helps users copy selected layout names to the Windows clipboard. 🔍 It is built for sheet-management tasks where layout names must…

  • TitleBlocksTools

    Short description Title Blocks Tools – Unified Menu System Comprehensive dialog-based interface for exporting and updating titleblock attributes via CSV with integrated help, file management, and reload utilities. Command: Commands: TitleBlocksTools, EXPTBCSV_EXPORT, UTB2 Description: This integrated toolset combines CSV export and import functionality for titleblock attribute management: Main Menu Dialog provides radio button selection between…