Function Syntax: Copy2Layouts / _Copy2Layouts Version: 1.1 Date: 20.06.2026 6:38:55PM AI+https://www.lee-mac.com/copytolayouts.html Description This program provides a dialog-driven workflow to pick objects from the drawing, then copy the selected objects into one or more selected paper-space layouts. Primary User Actions 1) The user runs the command LCOPYLAYOUTS (or the macro-safe alias _LCOPYLAYOUTS). 2) The dialog opens and the user clicks Pick from drawing to select objects on screen. 3) The program shows the total count of the selected objects. 4) The user filters layout names using a wildcard pattern, selects one or more layouts, then clicks Copy to Selected Layouts. Functionalities Pick from drawing: prompts the user to select any objects in the active drawing and stores the selection set for reuse. Selection count only: displays only the number of selected objects and does not classify objects by entity type. Layout list with multi-select: presents a list of paper-space layouts and allows selecting multiple targets. Select All: selects every layout currently visible in the list (after filtering). Select None: clears all currently selected layouts. Layout name filter: filters the layouts list using wildcard matching with * and ?, then refreshes the list when the user clicks Apply. Copy to selected layouts: copies the selected objects into each chosen layout’s paper-space block using COM automation. Conversion safety: skips objects that cannot be converted to VLA objects (commonly proxy or custom objects) so the copy operation can proceed without failing. Unique dialog name each run: generates a unique DCL dialog name and temporary file each time the command is executed to avoid naming collisions. Important Notes and Constraints • Targets paper-space layouts only: the layout list excludes Model. • By default, it skips copying to the current layout tab to reduce accidental duplication. • Copy is executed with an UNDO Begin and UNDO End wrapper, allowing the user to undo the full copy operation in one step. • The program disables Copy to Selected Layouts until a valid selection set exists. Recognizable Commands and Controls • Command name: LCOPYLAYOUTS • Alias for macros: _LCOPYLAYOUTS • Dialog buttons: Pick from drawing, Select All, Select None, Apply, Copy to Selected Layouts, Close. Example Usage Narrative This program will require the user to select objects from the drawing using the Pick from drawing button. The program will then show the total number of selected objects. The user can optionally apply a wildcard filter to reduce the list of layouts, then select one or more layouts and run Copy to Selected Layouts to copy the selected objects into the chosen layouts. Description📄 Copy2Layouts is an AutoCAD and Civil 3D AutoLISP tool that copies selected objects to multiple Paper Space layouts from a single DCL dialog.🔍 It improves multi-layout sheet production with wildcard layout filtering, selected-object counting, Select All / None controls, and COM-based CopyObjects automation. Function Syntax🚀 Main command: Copy2Layouts🚀 Macro alias: _Copy2Layouts🔍 Layout filter: * and ? wildcards SEO Optimized Overview📄 This AutoCAD layout utility duplicates selected objects into selected Paper Space layout blocks in the current drawing.🔍 The target layout list can be filtered using wildcard patterns such as *, 01*, or A-??.🧠 The routine converts selected entities to VLA objects and uses vla-CopyObjects for reliable COM-based duplication.↩️ The copy step is wrapped in an UNDO Begin/End group so the result can be rolled back more easily.📌 The workflow supports repeated Civil 3D sheet notes, legends, north arrows, stamps, details, and paper-space standards. Primary Workflow1️⃣ Run Copy2Layouts or _Copy2Layouts at the AutoCAD command line.2️⃣ Click Pick from drawing... and select the objects to copy.3️⃣ Filter the target layout list using * and ? if needed.4️⃣ Select the required layouts or use Select All / Select None.5️⃣ Click Copy to Selected Layouts to create copies in the target Paper Space layouts. Functionalities📄 Copy to multiple layouts - duplicates selected objects into selected Paper Space layout blocks.🔍 Wildcard layout filter - supports * and ? matching for layout names.🧰 Dialog-based picking - lets the user pick objects and keep the dialog workflow open.🔢 Total count display - shows the number of selected objects without cluttering the dialog.Selection controls - selects all or none of the currently filtered target layouts.🧠 COM CopyObjects - uses VLA object arrays and vla-CopyObjects for copying.↩️ Undo group - wraps the copy operation for easier rollback.🚀 Macro alias - provides _Copy2Layouts for toolbar or ribbon macros. Key Commands and Helper Functions🧩 C:Copy2Layouts - opens the copy-to-layouts dialog workflow.🧩 C:_Copy2Layouts - runs the macro-friendly alias.🧩 lc:apply-layout-filter - filters target layout names using wildcard matching.🧩 lc:do-pick - collects the source selection set from the drawing.🧩 lc:copy-to-layouts - copies the VLA object array into selected layout blocks.🧩 vla-CopyObjects - performs the COM-based object duplication.🧩 vlax-make-safearray / vlax-make-variant - builds the object array required for CopyObjects. Practical Result✅ The final result is a faster way to copy repeated Paper Space content to many layouts in one AutoCAD drawing.🎯 Copy2Layouts improves sheet preparation, layout standardization, annotation repetition, and Civil 3D drawing package production. Important Notes⚠️ Model Space is excluded from the target layout list.⚠️ The current source layout is skipped during copy to avoid duplicate objects in the active layout.⚠️ Proxy or custom objects may not convert into VLA objects and can be skipped.⚠️ Review copied content before saving large production drawing sets. Tags🏷️ AutoCAD, 🏷️ Civil 3D, 🏷️ AutoLISP, 🏷️ Visual LISP, 🏷️ DCL dialog, 🏷️ CopyObjects, 🏷️ Paper Space, 🏷️ Layouts, 🏷️ Wildcard filter, 🏷️ Copy to layouts, 🏷️ Sheet automation, 🏷️ CAD productivity, 🏷️ Layout manager, 🏷️ Annotation copy, 🏷️ Civil 3D sheets, 🏷️ Drawing production