3D_PolyOffset
Short description Creates a 3D offset of a selected 3D polyline. Converts the original 3D polyline into a temporary 2D polyline. Applies a user-defined offset…

UnReloadDetachSelectedXrefs_01
Result Running UnReloadDetachSelectedXrefs opens a dialog where the user can safely batch-manage xrefs without manually selecting drawing entities. The user can unload, reload, or detach xrefs, convert attach type between Attached and Overlay, zoom to xref inserts, and save or load repeatable xref lists. Saved lists are plain text and can be reused to recreate or standardize xref setups, including layer assignment and units control during attach operations. Tags Lisp, Xrefs, Dialog_UI, DCL, Layers, UCS, WCS, Coordinate_Systems, Model Space Suggest relevant tags not in the above list File_IO, Batch_Processing, Path_Management
UnReloadDetachSelectedXrefs_00
Result:- Generates a reusable Xref list file containing drawing context and per-xref configuration: HOSTINSUNITS, HOSTUCSNAME, and Name|Type|FoundAt|UnitsCode|Layer lines.
- Re-applies Xref configuration deterministically to reduce unit-scaling and UCS-related inconsistencies during reload/attach workflows.
- Restores correct layer placement by forcing xref inserts onto the saved layer after load/reload actions.
- Preserves working context for bulk actions by restoring the original UCS and view after ALL operations complete.
Based on / Source code:CopySelection
• Segment duplication A new LWPolyline reproducing only the selected portion of the original is created • Layer assignment The new polyline is placed on the chosen layer without altering the original object • Workflow benefit Enables quick extraction of partial runs for detailing, highlights, or separate layer control • Session persistence Stores last used filter and layer to speed up future usage
CopySelection_vs.01
Result: A new polyline segment is created from the selected portion of the original LWPOLYLINE, placed on the chosen layer, and optionally extended, rotated, shifted, and replicated as multiple offset copies according to your dialog settings. • Efficient profile building: Complex pipe or band arrangements along an alignment can be generated from a single base polyline, with each functional run duplicated and positioned with precise numeric control rather than manual edits. • Consistent offsets and angles: Repeated elements share the same extension, rotation, distance, and offset parameters, giving your layout a uniform and standards compliant appearance. • Safe experimentation: Apply and Undo inside the dialog let you experiment with different combinations of offsets, angles, and extension distances, knowing that Cancel can revert everything and OK will keep the final configuration in a single undo block. • Workflow memory: The command remembers your last layer and filter, so subsequent runs in the same project feel streamlined with minimal repetitive input. Copy code:
CreatesXrefsLayersAssign_01
Result- Standardizes XREF organization by enabling consistent per-XREF target layers using a prefix strategy.
- Provides a fast way to force all XREFs onto a single existing layer for audits, plotting, or temporary coordination workflows.
- Improves visibility with a live Current Layer column and synchronized selections across all lists.
- Prevents silent failures by safely handling locked layers during reassignment.
- Accelerates navigation with ZoomXref using precise ActiveX ZoomWindow extents.

XRefs2Layers
- If no XRefs exist: Displays an alert indicating there are zero XRefs in the drawing.
- If XRefs are processed: Reassigns XRef inserts to the selected target layer scheme and shows an alert summary like N XRef(s) on layer: “LayerName”.
- If canceled: No changes are applied and the command prints a cancel message to the command line.

XrefDrawingOrder
- Clicking Apply executes the draw order changes immediately, saves the order as the per drawing last order, and keeps the dialog open.
- • Clicking OK applies the order, saves it as last, closes the dialog, and returns the final list.
- • Clicking Cancel closes the dialog without applying.
- • The last applied order is stored inside the drawing under a dictionary entry named MXR_ORDERS with an XRECORD key _LAST_.
- • Named saved orders are stored in a text file at MXR_XrefOrders.txt (typically under DWGPREFIX, otherwise USERPROFILE, TEMP, or current folder).

ZoomXref
Result and user-facing output- • If no Xrefs exist: Alerts “No Xrefs found in this drawing.”
- • If selection has no Model Space inserts: Prints “No inserts of Xref “NAME” in Model Space.”
- • On successful zoom: Prints “Zoomed to Xref: NAME [Units: UNITS | Layer: LAYER]”.
- • Startup prompt: Prints guidance to run ZOOMXREF or SELECTXREF for live filtering and zoom.
Multiple_text_mtext_2
Result: All selected TEXT and MTEXT objects are replaced by a single MTEXT entity that preserves line order, paragraph separation, and underline formatting while matching the original visual style. • Cleaner editing: You can now edit the combined content in one MTEXT editor instead of handling many separate text entities. • Consistent appearance: The new MTEXT inherits layer, color, style, height, alignment, and rotation from the first selected text item. • Preserved structure: Individual lines from plain TEXT are kept as separate paragraphs, and underline codes are correctly converted to MTEXT format. • Non reversible by command: Original text entities are deleted once the MTEXT is created, so the change is final unless you use Undo. Copy code:
Copy_to_Clipboard
Result: The selected annotation content is cleaned, normalized, stripped of formatting codes, and copied directly to the Windows clipboard in the chosen text format. • Mode 1 (rb01): Produces one continuous clean text line suitable for Excel cells, filenames, or compact notes. • Mode 2 (rb02): Produces structured multi-line text for documentation, emails, or reports. • Clean Output: All MTEXT formatting, Unicode escapes, control codes, and garbage strings are removed, leaving readable plain text only. • Universal Use: The clipboard result can be pasted instantly into Word, Excel, Notepad, Outlook, or any external application. Copy code:Lower
Result: All selected TEXT and MTEXT entities are converted to the chosen case (Upper or Lower) instantly. • Uniform Formatting: Every selected annotation ends with consistent capitalization across the drawing. • Non-destructive: Only the text content changes — layer, style, color, rotation, and position remain untouched. • Clean Execution: System settings are restored automatically, leaving the environment unchanged after the command finishes. • Immediate Feedback: The text updates visually in the drawing as soon as the command loops through all entities. Copy code:Upper
All selected TEXT and MTEXT objects are converted to uppercase instantly.Region2Polyline
• Polyline output Each REGION is converted into a clean closed LWPOLYLINE that accurately follows the REGION perimeter • Curvature preservation All arcs inside the REGION become proper polyline bulges, maintaining geometric fidelity • Consistent segment order The exploded segments are automatically sorted to produce a continuous, gap-free outline • Cleanup Original REGION objects and intermediate exploded entities are deleted to avoid clutter • Final geometry The resulting LWPOLYLINE is closed, planar, properly oriented, and ready for further use such as hatching, offsetting, area calculations, or contours
Slope_01
Result / Output: • Geometry: One MTEXT entity per labeled segment (or per 2-point pair), placed at the segment midpoint, offset a fixed distance along the normal, rotated to match the segment angle. • Text content: Formatted slope string (with prefix/suffix) and, if enabled, a line break followed by the formatted angle string. • Visual style: Uses the current text style, current layer, and the user-selected text height & width factor for consistent appearance in the drawing. • User feedback: Command line messages confirm each created label and indicate when invalid or zero-length segments are skipped. Overall, running slope_p produces clear, customizable slope/angle MTEXT annotations along your design geometry with minimal repetitive work.
PrefixSuffixRound
• Transformed text entities — Selected TEXT, MTEXT, ATTRIB, and first attributes of INSERTs have their string content updated based on the chosen prefix, suffix, or rounding rules • Cleaned prefixes/suffixes — Unwanted leading or trailing patterns can be removed, even when partially matched with wildcards, while keeping important captured segments • Formatted numeric text — Number-only labels can be normalized to a consistent decimal precision using the Digits mode • Batch processing summary — After selection, the routine reports how many items were processed, giving quick feedback on scope • Reusable configuration — Users can repeat transformations on new selections without reconfiguring, thanks to stored PSOT_* environment values and helper commands PREF, SUFF, and OKR_TXT
Slope_Ro
• Displayed slope ratio — Presented as Slope_Ro: run:rise after simplification • Displayed slope angle — Angle shown in degrees with two decimals • No geometry created — Does not draw text, objects, or symbols • Useful for quick checks — Ideal for rapid field/plan slope validation • Environment restored — BLIPMODE and CMDECHO returned to original values
OffsetAndLayer
• Geometric result New offset curves are created for each valid planar object based on the chosen inward or outward offset • Layer result Every newly created offset entity is placed on the selected layer while the originals remain unchanged • Direction verification If the resulting area contradicts the chosen direction, the offset is reversed and recreated correctly • Failure report Objects that cannot be offset (typically too small for inward offset) are counted and reported to the user • Undo safety All operations are bracketed inside a single undo mark so the entire offset procedure can be undone at once
Lengthen
Result: All selected lines, arcs and polylines are extended at their start and end by the chosen distances, with the final state reflecting your last confirmed Apply or single OK execution. • Precise control: You obtain fine grained control over how far each end of the geometry is extended, including curved segments, without manual stretching for each object. • Safe experimentation: The Apply and Undo buttons allow you to experiment with multiple extension settings while the command is running, always able to step back to the previous state within the same session. • Clean undo path: If you cancel, all extensions made during that run are reverted, leaving the drawing unchanged; if you accept, the final geometry is grouped into a single undo step for later reversal. • Workflow integration: The load message reminds you that the tool is available and how to invoke it, integrating smoothly into everyday drafting for trimming and extending geometry with more flexibility than the standard extend command. Copy code:MiddleLinePolylines_2
• Geometric result A new two vertex LWPOLYLINE is added in ModelSpace that represents the centerline between the two selected boundary curves • Non destructive The original entities remain unchanged; only an additional centerline object is created • Workflow benefit Provides an extremely fast way to generate a central axis for profiles, corridors, or similar parallel edge situations
InteriorPolylinesArea
• Final geometry Produces broken, offset, converted, cleaned, or unified polylines depending on the chosen option • Area readiness Ensures clean closed shapes perfect for catchment modeling or quantity extraction • Efficiency Complex multi-step workflows can be triggered with a single dialog choice • Repeatability Previous user settings persist, speeding repeated processingCloseParalelPolylines
• Geometric result Produces one polyline formed from the two originals plus two connectors • Drawing cleanup Converts parallel or open shapes into a single clean polyline ready for editing • Environment safety All system variables restored to previous values
BookmarkEntities
Result / Usage summary: 1. Run BMEntityPos. 2. Click “Pick from drawing”, select entities; they appear in the grid with number, type, coordinates, color, and remark column. 3. Optionally assign per-bookmark remarks (e.g., “Detail A – top left node”, “Valve 12”, etc.). 4. Use “Group” filter to quickly narrow down to Text, Polylines, Blocks… 5. Use “Zoom” to jump directly to the stored object; the tool tries to use the current geometry via handle so it works even if things moved. 6. Save the list (per drawing) and later “Load” or “Import” it again to restore your navigation points in future sessions.
In short, BMEntityPos is a lightweight bookmark & navigation manager for key entities in your DWG, complete with grouping, remarks, zooming, and per-file persistence.PlusMinusNumericValue
• Updated text content — All selected TEXT, MTEXT, ATTRIB, and ATTDEF objects have their targeted numeric portions incremented or decremented by the specified amount • Preserved formatting — Non-numeric characters, prefixes, suffixes, and MTEXT control codes remain unchanged, so labels and expressions keep their layout • Consistent precision — Decimal numbers are adjusted with respect to their existing precision (and the increment) with trailing zeros padded when required • Batch-friendly — Multiple selected entities are processed in one run with a single UNDO group, allowing quick sweeping renumbering or value adjustments • User convenience — Last used settings are remembered, making repeated plus/minus operations fast with minimal extra input
RotateUCS
Result: The current UCS is rotated around the Z axis by the angle the user specifies, the snap angle is aligned to it, and the user can store this UCS under a name to return to it later. This makes it easier to draft on rotated building wings, site orientations, or non-orthogonal geometry while keeping the cursor and ortho aligned.ChangeBlockEntitiesLayer
Result: All entities inside the definitions of the selected block references are moved to the same layer as their block reference, giving full layer based control over the block content. • Consistent blocks: Internal entities no longer sit on mismatched layers, so turning the block layer on or off reliably affects the entire block content. • Easier management: Color, linetype, and plot settings can be controlled centrally from the block reference layer instead of multiple internal layers. • Global effect: Since the block definition is edited, every instance of that block in the drawing reflects the updated internal layer assignments. • Non destructive in layout: No entities are deleted or created in model or paper space, only the layer property of block definition entities is updated. Copy code:
CopyBlock
Result: A new block definition is created with a new name, the chosen reference is retargeted to this definition, and optionally placed on a selected layer with its contents forced ByLayer, while the original reference can be removed automatically. • New block identity: You obtain a separate, uniquely named block that can be edited or managed independently from the original definition. • Layer controlled copy: In +Layer mode, the new block reference and its internal geometry conform to a single layer standard, improving visibility and plotting control. • Clean replacement: With “Delete Initial Block” enabled, the original reference is removed and replaced by the newly named copy in the same location. • Predictable behavior: The new block reacts as expected to layer changes and ByLayer properties, making it easier to integrate into existing layer standards. Copy code:
Exp_Imp_NamedViews
Result: You get a complete, project-aware Named Views toolkit that can export and import VIEW + VISUALSTYLE definitions between drawings using predefined folders, with path persistence, help, and clipboard tools built in. • Data portability: Named Views and their visual styles can be easily transferred between projects and machines using simple TXT files, without manual DXF hacking or CUI edits. • Project consistency: Predefined OneDrive-based paths ensure each project’s view libraries are stored and reused consistently, reducing mistakes and manual re-creation of standard views. • User efficiency: One dialog covers project folder selection, export/import mode choice, and tooling, drastically reducing clicks and dialog navigation compared to raw commands alone. • Documentation on demand: The Help window plus Copy-to-Clipboard features make it easy to share usage instructions with colleagues or paste them into documentation and emails. Copy code:
NamedViewList
• View navigation — User can quickly find and zoom to any named view using filter and zoom without leaving the dialog • Clean view list — Unwanted views can be deleted directly from the interface, keeping the named view list organized • Consistent naming — Views can be renamed in-place with conflict checks, ensuring unique names • Batch restore — Selected views are restored after OK, enabling quick cycling or setup of multiple views in one run • Non-destructive settings — Aside from view edits, no drawing geometry is modified, and all temporary UI artifacts are cleaned up
ToolbarManager
Result: Your AutoCAD toolbars are updated so that only the toolbars selected in the current filtered view are visible, while all other toolbars in that view are hidden, giving you a clean, customized toolbar layout. • Faster workspace management: You can switch between different toolbar sets in seconds, without editing the CUI or manually toggling individual toolbars on and off. • Reduced clutter: Unused toolbars are easily hidden based on simple filters and group selections, improving available screen space and focus on your current task. • Repeatable setups: Because the manager remembers your last view, it is easy to revisit and refine the same toolbar configuration throughout a project session. • Clear feedback: The list preselection shows which toolbars are visible before and after applying, and a short message confirms when toolbars have been updated. Copy code:
TotalLengthAreaDetailed_vs_01
Result in practice • Clipboard You can immediately paste an Excel compatible formula such as =ceiling(10.25+5.75,5) into a worksheet. • Drawing annotation The routine optionally places a UCS aware MText label like 10.25+5.75=16.00 for multiple entities or just 16.00 when a single entity is selected. • Feedback Command line messages display the summed length or area with the same configured precision.
DB_Planung_Gelände
Result: After configuring and running the tool, your drawing gains Planum or Gelaende profile labels that show distance and elevation at chosen points along the band, using consistent layers, text styles, and offsets defined in the dialog. • Consistent annotation: All generated leader lines and texts follow a unified standard for layers, styles, color, text height, and numeric formatting across the project. • Saved project settings: The INI file keeps the last used mode and values so subsequent runs in the same drawing start with familiar, project specific defaults instead of factory defaults. • Guided workflow: Users see graphical help and clear dialog structure, making it easier to configure complex Planum and Gelaende labeling without manually editing many system variables or layer properties. • Clean environment: System variables, view states, and temporary layer color changes are restored at the end, and the tool leaves the drawing in a predictable state ready for further work. Copy code:
FixLineTextOverlap
Result: Vertical lines are converted into well spaced crank polylines and nearby TEXT or MTEXT labels are redistributed horizontally around a rail so that overlaps are removed and the layout becomes clear and readable. • Cleaner profile views: Line stacks and text stacks in cross sections or detail bands no longer collide, making distance and elevation information easy to read. • Consistent spacing: All offsets respect the same numeric spacing setting so both geometry and annotations maintain a uniform visual rhythm. • Reduced manual editing: Many previously manual move operations are automated, especially for large numbers of lines and labels that were overlapping in tight areas. • Undo capable changes: Because line modifications are wrapped in an UNDO group, you can revert the entire line overlap adjustment in one step if the result is not desired. Copy code:
SetUpUnits
Result: After the user picks country, coordinate system, scale, angle and units, the routine applies everything in one go to the active Civil 3D drawing. The drawing now has the correct CS code and unit settings, so subsequent civil objects will be created in the right context without the user going through several Civil 3D dialogs. A confirmation message is printed in the command line showing the applied zone, scale, angular units and drawing units.MleaderStraight
- MLeaders are adjusted so the leader segment is “straightened” by projecting the begin vertex to a perpendicular reference line through the end vertex (horizontal or vertical, chosen automatically).
- You can run the command in either ModelSpace or PaperSpace; the routine uses the current active space and can process either a chosen set or all MLeaders in the current layout/space.
- After processing, the drawing regenerates and the command prints how many MultiLeaders were processed, or indicates nothing was found/canceled.

CubeDisplay_Off_On
Result: After running the command, the Navigation Cube will reappear on screen, fully refreshed and responsive. This is especially helpful when the cube becomes invisible after workspace changes, viewport switching, or 3D navigation glitches.
Export Import Custom MS_UCS
Result: The user can quickly export all UCS definitions from a drawing into a shared folder, and later (or another user) can import them back into another drawing using the same dialog and folder presets. Because folders are auto-resolved (OneDrive, fixed path, last used, DWG folder), the workflow becomes repeatable across machines and projects. The help dialog makes the tool self-documented: users can copy commands, paths, and explanations straight to clipboard without closing the dialog.
MLeaderWidthFix
- MTEXT objects have their Width set to the user-entered value, standardizing wrapping/column width across the selection.
- MLeaders that use MTEXT content (ContentType = 2) have their TextWidth set to the same value.
- TEXT entities are left unchanged and explicitly reported as skipped because their width is not directly settable via a simple Width property in this routine.
Text2Multileader_01
Result- A new MLEADER is created at the specified leader points, containing the combined text content and an assigned text width based on the widest selected text object.
- The selected LINE or POLYLINE used for leader points is deleted after successful leader creation.
- The originally selected TEXT or MTEXT entities are deleted after successful leader creation.
- Tags: Mleader, Leader, Text, Mtext, Polyline, Coordinates, CAD, General_AutoCAD, Dimnesions Leader.
- Suggested relevant tags not in the list: Annotation, Cleanup, Automation.
Text2Multileader_00
- A single MultiLeader is created using user-picked arrowhead and landing locations.
- The new MLeader text is the concatenation of the selected TEXT/MTEXT strings in top-to-bottom order, with trailing whitespace removed.
- The new MLeader text width is set to the maximum bounding-box width found among the original text objects, and the original text objects are deleted.

Change Background Color
Result: Model and/or Paper space background changes to the selected color preset (black, white, or gray). Cursor, tracking, and snap marker colors adjust for readability, and previous colors are restored if the dialog is canceled.
Hide / Show Objects
Result: Depending on the user’s choice, the drawing updates to show only selected objects, hide them, or reveal all again. Visibility attributes are updated for all entities, and the screen refreshes automatically for immediate effect.
SteSysVar
Result: User ends up with multiple key AutoCAD system variables set in one go, from one dialog, grouped by task (file/dialogs/selection/drafting/xrefs/publish). Settings persist during the session, the dialog can be reloaded from disk, and even publish behavior (PUBLISHCOLLATE) can be tuned from the same tool.
ChangeLayer
- If the user clicks OK after selecting a layer from the filtered list, the routine returns that layer name and the command sets it as the current layer (CLAYER).
- If the user clicks Pick Layer from Drawing, the filter is replaced with the picked object’s layer and the dialog reopens to streamline selection.
- If canceled or no valid list selection is made, the current layer is unchanged and a cancel/no-selection message is printed; the last filter pattern is still saved for next time.

ChangeLayerToSelected
- The user chooses a target layer from a filtered popup list (optionally seeded by picking an object’s layer), and the last filter/selection are remembered for the next run.
- After confirming the layer, the user selects multiple objects and those entities are moved to the chosen layer using CHPROP.
- If the user cancels the dialog or selects no objects, no changes are made and the routine prints a cancel/no-selection message.

DeleteLayerByFilter
- Running DeleteLayerByFilter opens a filterable, multi-select list of eligible layers; selected layers are deleted using the corrected -LAYDEL scripted sequence, with a VLA fallback if necessary.
- Reserved layers (0, DEFPOINTS) and Xref layers are not deleted and are reported as failures with reason tags.
- Running LayDelByList performs the same deletion logic for a predefined list variable LAYLIST and reports deleted vs failed layers in the command line output.

DuplicateToSelectedLayer
- The user selects entities, chooses a target layer from a dialog, and the routine duplicates the entities in place onto that layer.
- The copied entities are forced to the chosen layer, moved to the front of draw order, and left preselected for convenience.
- If the user cancels the dialog or selects nothing, nothing is changed and an informational message is printed; the last chosen layer is remembered when OK is used.
DuplicateToNewLayer
- After running DUPLICATELAYER, a new (or existing) layer name is selected via dialog; if it did not exist, it is created by copying properties from the picked object’s layer, then set as the current layer.
- If the dialog checkbox is enabled, the originally selected object is moved onto the new layer and updated; otherwise, only the current layer changes.
- After running DUPLICATELAYERCURRENT, the current layer is duplicated into the provided name (created if needed) and becomes the new current layer; no entity reassignment occurs.

FreezeLayersInMS
- Running FLMS3 presents a filterable, multi-select layer management dialog that can target current layers, xref layers, or both, with optional selection of specific xrefs to constrain xref-layer matching.
- Selected layers can be batch-modified (Freeze/Unfreeze, Off/On, Lock/Unlock, Plot/NoPlot) and the routine reports how many layers were affected.
- Xref layer names appear without the xref| prefix in the list for readability, but actions are applied to the true full layer names; filter/toggle selections persist between runs without showing a stray T.

LayerCreation
- Running LayerCreation creates or updates a layer with the specified name, linetype, lineweight, transparency, and color (ACI/RGB/ColorBook), then applies the configured defaults for new objects and optionally sets the new layer current.
- If the DCL core is not usable, the routine automatically falls back to NEWLAYERCLI, which collects the same key inputs via the command line and performs the same layer creation/update and default-setting steps.
- The last used color selection is retained for subsequent runs, enabling consistent layer creation workflows across sessions.

MultiOffsetBothSidesWithLayer
Result: The command creates new offset lines on both sides of the originals based on chosen distances or profiles. If enabled, it deletes the original entities and places the new offsets on the selected layer. The result is a streamlined process for creating symmetrical, layered linework — ideal for drafting conduits, ducts, or structural outlines in AutoCAD.
PurgeUnusedLayers
- Shows a populated list of unused layers and a status line with the total unused layers found.
- After purge, prints results to the command line with counts for Deleted and Failed deletions.
- If nothing is selected or nothing is unused, reports the condition instead of deleting anything.
- Cancelled is reported when the dialog is closed without purging.

RenameLayer
- Running LRN opens a dialog to batch-rename layers matching a search substring (or all layers except 0) by removing, replacing, and/or adding prefix/suffix, with an optional ALL CAPS conversion.
- If the Merge option is enabled and a computed target name already exists, the routine merges layers instead of failing a rename, then continues processing remaining matches.
- The operation runs with a progress meter and is wrapped in a single Undo mark; temporary DCL files are deleted and settings are restored on completion or cancel.

Zoom2Layer
- If the user confirms a layer selection, the view zooms to the combined extents of entities on that layer.
- If no objects exist on the selected layer, prints No objects found on layer for that layer.
- If objects exist but none provide a valid bounding box, prints No valid geometry to zoom to for that layer.
- If the user cancels or no layer is selected, prints No layer selected or cancelled and performs no zoom.

LayersNameToClipboard
- The command outputs the unique layer names used by the selected entities and copies those names to the clipboard as a clean, newline-separated list suitable for pasting elsewhere.
- If no objects are selected or no layer names are found, nothing is copied and an informational message is printed.
NCopyExtra
Result: Each picked nested object is duplicated into the current drawing as an independent entity on a clean local layer whose properties match the original xref layer. • Independent geometry: The copied entities no longer depend on the xref; they are fully local and editable even if the xref is unloaded or detached. • Clean layer structure: The drawing gets local layers (without xref prefixes) that visually match the xref layers, helping to standardize and simplify layer naming. • Consistent appearance: Because color, linetype, and lineweight are cloned from the original xref layer, the copied entities look identical to what they were inside the xref. • Controlled extraction: You decide interactively which pieces to pull from the xref or block, one pick at a time, instead of exploding or binding the entire reference. Copy code:
Layouts_list
- Copies the selected layout names to the Windows clipboard (CRLF separated) and reports completion in the command line and via a dialog message field.
- If nothing is selected, shows an alert requesting selection and displays Nothing selected without copying.
- If clipboard copy succeeds, prints Copied to clipboard; if it fails, prints a failure message and no clipboard update is guaranteed.
- Always unloads the dialog and deletes the temporary DCL file on close or error.

LayoutNum
- On Apply, selected layouts are renamed immediately according to the preview plan, the dialog stays open, and Undo becomes available for rollback of the last rename operation.
- On Undo, the most recent rename frame is reverted and the selection is restored to the reverted layout names; supports multi-level undo until the stack is empty.
- On OK, performs the rename then closes the dialog, persisting the current UI settings for the next run.
- On Cancel or close, no new rename is applied by this action and the dialog exits after capturing settings and cleaning up the temporary DCL file.
- If validation fails, shows an alert explaining the issue and prevents renaming until corrected.
- If no paper-space layouts exist, prints a message and exits without opening the dialog.

GoToLayout
- On OK, switches CTAB to the selected layout or Model tab and prints a confirmation line.
- If no matches exist, OK is disabled and the command prevents switching; if reached defensively, the routine restores the original tab and reports no matches.
- On Cancel or close, restores the original tab and prints Cancelled. Original tab restored.
- Always unloads the dialog and deletes the temporary DCL file after the dialog closes.
- If the DCL file cannot be written or the dialog cannot be loaded, prints an error message and exits without changing tabs.

FreezeLayersInVP
- If the user clicks Freeze, each selected layer is frozen via VPLAYER and a summary line prints listing frozen layer names.
- If no layers are selected, prints No layers selected.
- If the dialog cannot be loaded, shows an alert and exits without changes.
- After the dialog closes, restores CMDECHO, unloads the dialog, and deletes the generated DCL file.

Copy2Layouts
- On successful copy, selected objects are duplicated into each chosen paper-space layout and a confirmation alert reports completion.
- If objects are not selected, shows No objects selected and instructs to use Pick first.
- If no layouts match the filter, shows No layouts match the current filter and does not copy.
- If no target layouts are selected, shows No target layouts selected and does not copy.
- On close or cancel, exits cleanly after unloading the dialog and deleting the temp DCL file, without copying anything.
RotateMtextVport
Result:- All selected MTEXT objects become horizontally oriented (0° rotation)
- All selected TEXT objects rotate to match the viewport orientation
- Text readability is improved in rotated viewports

SelectLayout
Result:- Interactive dialog box appears with all paper space layouts listed
- Selected layout becomes the current active layout
- Confirmation message displays the activated layout name
- Temporary DCL file is automatically deleted after operation
- Drawing viewport switches to the chosen layout tab

TitleBlocksTools
Result:- Main menu dialog appears with Export CSV and Load CSV options
- Selecting Export launches interactive titleblock picker and tag selector
- CSV file is generated with proper escaping and Excel-safe formatting
- CSV optionally opens in Excel automatically for editing
- Selecting Load CSV updates titleblocks from edited CSV file
- Only changed attribute values are updated (efficiency optimization)
- Single undo operation reverts all updates if needed
- Help dialog provides complete documentation with copy-to-clipboard features
- Explorer and Notepad++ buttons enable quick LISP file access and editing
- Reload button applies code changes without restarting AutoCAD
- Round-trip workflow: Export → Excel edit → Update maintains data integrity
- Status messages report counts of updated attributes and blocks
- Unicode/ASCII toggle adapts help text for different display preferences

LockAllVp
- The selected layouts will have their Paper Space viewports set to Locked or Unlocked according to the chosen action.
- The dialog list updates to reflect the new per-layout status immediately after Lock or Unlock.
- Users can export the selected layout list (with status) via Copy to Clipboard for external use.

Zoom Extend Window
Result summary The routine provides a stable dialog-driven way to select layouts, optionally include Model, copy selections to clipboard, then apply zoom extents or a consistent zoom window in Paper Space across the selected layouts. Tags Layouts, Paper Space, DCL, Dialog_UI, Clipboard, Viewports, General_AutoCAD, Lisp, Extra_AutoCAD Suggest relevant tags not in the list Zoom, Wildcards, Undo
Zoom Extend
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
Zoom Window
Result After selection in the dialog, LZW prompts for a zoom window once, then switches through the chosen layout tabs and applies Zoom Window 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
AnnoAllOnOff
- If the user confirms a selection, sets ANNOALLVISIBLE to the chosen value (1 or 0) for each selected tab and restores the prior tab/mode state.
- If no tabs are selected, prints AAVIS: Nothing selected. No changes made.
- If the dialog is cancelled, prints AAVIS: Cancelled.
- If the dialog cannot be loaded, prints AAVIS: Could not load dialog.
- After applying, prints a confirmation message indicating the value applied to the selected tabs.

AnnoAllOff
- If the user confirms a selection, ANNOALLVISIBLE becomes 0 on each selected tab and the prior tab/mode state is restored afterward.
- If no tabs are selected, prints AAOFF: Nothing selected. No changes made.
- If the dialog is cancelled, prints AAOFF: Cancelled.
- If the dialog cannot be loaded, prints AAOFF: Could not load dialog.
- Always deletes the temporary DCL file and unloads the dialog definition at the end of the routine.

AnnoAllOn
- If the user confirms a selection, ANNOALLVISIBLE is set to 1 on each selected tab and the previous tab and mode settings are restored.
- If no tabs are selected, prints AAON: Nothing selected. No changes made.
- If the dialog is cancelled, prints AAON: Cancelled.
- If the dialog cannot be loaded, prints AAON: Could not load dialog.
- Always unloads the dialog and deletes the temporary DCL file at the end of execution.

LayoutTools
Tags- Layouts, Viewports, Paper Space, DCL, Dialog_UI, Clipboard, Extra_AutoCAD, General_AutoCAD, Lisp
- Zoom
- Annotation
- UndoMark or Undo grouping
- Persistent DWG storage or XRecord persistence
- Wildcard filter

DuplicateLayouts_00
- 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.

DuplicateLayouts_01
Tags- Layouts, DCL, Dialog_UI, General_AutoCAD, Extra_AutoCAD, Lisp
- Undo or UndoMark grouping
- Naming or UniqueName generation
- Batch duplication workflow

SetPublishLocation_01
Result- User can quickly standardize plotting configuration per layout, then verify lock, annotation visibility, and zoom status at a glance inside one dialog.
- Important behavior: Zoom status shows ZExt only when applied by Zoom Extents, otherwise it shows Z question mark.
- Tags: CAD, Lisp, Plot, Layouts, Paper Space, Viewports, DCL, Dialog_UI, Plot_Device, Page_Setup, Paper_Size, General_AutoCAD.
- Suggested tags not in provided list: Batch_Apply, Viewport_Lock, Annotation_Visibility, Zoom_Tools, Plot_Standardization.

SetPlotDeviceNames_00
- All layouts that have DWG To PDF.pc3 available will have their plot device/configuration set to it.
- Any layout that does not list the device remains unchanged and is reported in the command line output.
Clear_Bookmarks
• If OK is selected → *textPositions* is set to NIL, and a message confirms successful clearing • If Cancel is selected → Bookmark list remains intact, and a safe cancellation message is displayed • No entities or drawing data are modified, only memory storage is affectedAdd_Bookmark
• Bookmark list updated — *textPositions* ends up containing one entry per processed entity in the format (label startPt endPt) • Entity count feedback — Command line reports how many entries are now stored, giving quick confirmation of captured objects • No geometry modification — The routine does not create or delete any drawing entities; it only reads and stores data • Ready for downstream tools — Other routines can later consume *textPositions* to place markers, labels, leaders, or export coordinatesSlope_00
• Precise slope labels — TEXT entities created at midpoint, rotated along slope line • Formatted exactly as selected — %, H:V, V:H, H:V decimal, or V:H decimal • Correct sign & scaling — Reflects positive or negative slope and custom scaling factors • Safe & consistent — Covers extreme cases (vertical/horizontal) with stable output • Reusable workflow — Settings persist per session, enabling repetitive point-pair labeling with consistencyCopy_to_Clipboard_Xref
Result: All text gathered from your picked nested entities is extracted, combined, and copied directly into the Windows clipboard. • Accurate extraction: TEXT + MTEXT + DIMENSION override/measurement + LEADER annotation + BLOCK attributes. • Fully automatic cleanup: All temporary entity copies used to extract text are deleted automatically. • Clipboard-ready output: Final text is immediately paste-ready for Excel, Word, Notepad, emails, or documentation. • Unmodified drawing: No permanent entities remain from the extraction process. Copy code:
CreatesXrefsLayersAssign_vs.00
Result / Outcome: All selected xrefs are moved to the layers chosen in the dialog, so each external reference can live on its own dedicated layer (for example _xref_xrefname) for better control of visibility, plotting, and color. This makes it very fast to standardize xref layers across drawings without manually searching for each xref insert.
