Text2Multileader_01

Short description

Sort description Creates a new MLEADER from selected TEXT or MTEXT, using a selected LINE or POLYLINE as leader geometry, then deletes the source objects.

Command:

Command
  • am2.

Description:

Description
  • Prompts the user to select one or more TEXT or MTEXT entities and extracts their content.
  • Sorts the selected text objects by insertion point Y coordinate to build a readable top-to-bottom string sequence.
  • Concatenates all text strings into a single note, separated by spaces, then trims the final trailing space.
  • Computes a target text width as the maximum bounding-box width among the selected text objects.
  • Prompts the user to select a LINE or POLYLINE to define the leader start and end points.
  • Creates a MLEADER using the extracted points and assigns the concatenated text and computed width to the new leader.
  • If the leader creation succeeds, deletes the selected line or polyline and deletes the original text entities.

Helper function: (if any)​

Helper function
  • rjp-getbbwdth computes the text object width by calling vla-getboundingbox and measuring the horizontal distance between bounding box corners.
  • The widest text object determines the final TextWidth assigned to the created MLEADER.

Functionalities:

Functionalities
  • Creates one MLEADER from multiple text entities.
  • Automatically orders the note content using insertion point Y coordinates to preserve reading order in typical stacked notes.
  • Supports leader point extraction from LINE start and end points.
  • Supports leader point extraction from LWPOLYLINE or POLYLINE by using the first and last vertex coordinates.
  • Sets the leader text width using the maximum bounding-box width among selected text objects for more consistent wrapping behavior.
  • Performs cleanup by deleting the source leader geometry and deleting the original text objects after successful creation.
  • Prints warnings when the chosen polyline has insufficient points or when the selected leader object is not supported.

Result:

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.

Images, animations etc.

Pixel

Additional info:

Share this page:

Leave a Reply

Page Tag: 🏷️ Dim_leader_menu

  • Text2Multileader_01

    Short description Sort description Creates a new MLEADER from selected TEXT or MTEXT, using a selected LINE or POLYLINE as leader geometry, then deletes the source objects. Command: Command am2. Description: Description Prompts the user to select one or more TEXT or MTEXT entities and extracts their content. Sorts the selected text objects by insertion…

  • ConvertPolylineAndText2Mleader

    Short description🚀 Converts selected AutoCAD polylines into leader geometry using the P2L command, copies the original polyline properties to the new leader, and removes the source polyline after conversion. Command:P2L Description:📘 ConvertPolylineAndText2Mleader is an AutoLISP drafting utility for AutoCAD users who need to convert selected POLYLINE or LWPOLYLINE geometry into leader-style annotation paths. The implemented…

  • ConvertLeaderAndText2Mleader

    Short description🏷️ AutoCAD AutoLISP tool for converting old LEADER plus MTEXT annotation pairs into modern MLEADER objects while preserving text, style, layer, rotation, formatting options, and annotation workflow. Command:🧰 Main commands: LTM and Leader_To_Multileader. Run LTM for the short command alias or Leader_To_Multileader for the full command name. Description:🚀 ConvertLeaderAndText2Mleader is an AutoCAD and Civil…

  • AddVertex2Mleader

    Short description🧩 AddVertex2Mleader is an AutoCAD AutoLISP utility that adds a new vertex point to a selected MULTILEADER object, helping CAD users adjust leader geometry quickly without rebuilding the annotation. Command:🚀 Main command: AddVertex2Mleader Type AddVertex2Mleader in the AutoCAD command line, select a MULTILEADER object, then pick the point where the new leader vertex should…

  • Dim_leader_menu

    Lisp code: Expand Code ↓ Select Code Copy Code ; — auto-generated by LispLoader — ; Menu: Dim_leader_menu ; Generated: 2026-06-09 07:28:56 (setq base "C:\\Users\\mateid\\OneDrive – DB E.C.O. Group\\@C3D\\@Dan_Templates\\Acad\\Support_files\\Lisps\\Help_File\\") (load (strcat base "Dim_leader_menu\\3Point_4Point_Angle\\3Point_4Point_Angle.lsp")) (load (strcat base "Dim_leader_menu\\AddVertex2Mleader\\AddVertex2Mleader.lsp")) (load (strcat base "Dim_leader_menu\\ConvertLeaderAndText2Mleader\\ConvertLeaderAndText2Mleader.lsp")) (load (strcat base "Dim_leader_menu\\ConvertPolylineAndText2Mleader\\ConvertPolylineAndText2Mleader.lsp")) (load (strcat base "Dim_leader_menu\\Leader2Mleader\\Leader2Mleader.lsp")) (load (strcat base "Dim_leader_menu\\LeaderToMleader\\LeaderToMleader.lsp")) (load (strcat…