<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Spacing text efficiently in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13708924#M351360</link>
    <description>&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A regular task I perform is manually moving text to improve legibility (see images for before and after of this task). Looking for any suggestions for streamlining this process making it less labour/time intensive. Open to using LISP, commands and any other techniques you may think is helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pre manual moving" style="width: 368px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1549022iE983F9BC10B323DC/image-dimensions/368x357?v=v2" width="368" height="357" role="button" title="RAW.PNG" alt="Pre manual moving" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Pre manual moving&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Post manual moving" style="width: 371px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1549023iA93696B56001552E/image-dimensions/371x280?v=v2" width="371" height="280" role="button" title="CLEANED.PNG" alt="Post manual moving" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Post manual moving&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2025 06:07:15 GMT</pubDate>
    <dc:creator>benjamin_sofo</dc:creator>
    <dc:date>2025-07-03T06:07:15Z</dc:date>
    <item>
      <title>Spacing text efficiently</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13708924#M351360</link>
      <description>&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A regular task I perform is manually moving text to improve legibility (see images for before and after of this task). Looking for any suggestions for streamlining this process making it less labour/time intensive. Open to using LISP, commands and any other techniques you may think is helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pre manual moving" style="width: 368px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1549022iE983F9BC10B323DC/image-dimensions/368x357?v=v2" width="368" height="357" role="button" title="RAW.PNG" alt="Pre manual moving" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Pre manual moving&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Post manual moving" style="width: 371px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1549023iA93696B56001552E/image-dimensions/371x280?v=v2" width="371" height="280" role="button" title="CLEANED.PNG" alt="Post manual moving" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Post manual moving&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 06:07:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13708924#M351360</guid>
      <dc:creator>benjamin_sofo</dc:creator>
      <dc:date>2025-07-03T06:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing text efficiently</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13708948#M351361</link>
      <description>&lt;P&gt;Hi and Welcome to AutoCAD Forum,&lt;/P&gt;
&lt;P&gt;In AutoCAD ... There are many ways for selecting Objects Based on Shared Properties.&lt;/P&gt;
&lt;UL id="GUID-FBBA809F-9BD4-4A34-B671-0B8A920B18A4__WS1A9193826455F5FF61D1E3E812435C7CB1B-55D6" class="ul"&gt;
&lt;LI id="GUID-FBBA809F-9BD4-4A34-B671-0B8A920B18A4__WS1A9193826455F5FF61D1E3E812435C7CB1B-55D5" class="li"&gt;&lt;A href="https://help.autodesk.com/view/ACD/2025/ENU/?guid=GUID-C160A9C9-1287-4111-8D27-05AFBAA7C29F" target="_blank" rel="noopener"&gt;SELECTSIMILAR&lt;/A&gt; (Command) ..&amp;nbsp;simple method to select objects based on properties such as layer, color, or lineweight, is Select Similar command, accessible from the shortcut menu after you've selected an object.&lt;/LI&gt;
&lt;LI id="GUID-FBBA809F-9BD4-4A34-B671-0B8A920B18A4__LI_2244761E749B46E79C23204267C88A63" class="li"&gt;&lt;A href="https://help.autodesk.com/view/ACD/2025/ENU/?guid=GUID-40893D34-ADBE-406A-8993-9035F2771F1D" target="_blank" rel="noopener"&gt;Quick Select&lt;/A&gt; (QSELECT), always accessible from the shortcut menu, offers more options and additional properties, such as transparency, for creating selection sets on the fly.&lt;/LI&gt;
&lt;LI id="GUID-FBBA809F-9BD4-4A34-B671-0B8A920B18A4__LI_EC2966694AF049538A77BD9A2F8CDA54" class="li"&gt;&lt;A href="https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-E0612A64-2B6A-4A67-BEB8-A646C4AC34DD" target="_blank" rel="noopener"&gt;Filter&lt;/A&gt; (Command) ..To create saved selection filters, use the FILTER command or enter&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG id="GUID-FBBA809F-9BD4-4A34-B671-0B8A920B18A4__GUID-05797A10-9A33-413D-831C-87E7A1A936E7" class="ph b"&gt;'filter&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;at the Select Objects prompt.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 03 Jul 2025 06:30:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13708948#M351361</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2025-07-03T06:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing text efficiently</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13709091#M351362</link>
      <description>&lt;P&gt;Hi Ben,&lt;BR /&gt;Welcome to the Autodesk Forums.&lt;BR /&gt;Dotsoft has &lt;A href="https://www.dotsoft.com/forums/viewtopic.php?t=22" target="_blank" rel="noopener"&gt;&amp;gt;&amp;gt;&amp;gt;Point Leader Commands&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;.&lt;BR /&gt;Dave&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 08:45:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13709091#M351362</guid>
      <dc:creator>Pointdump</dc:creator>
      <dc:date>2025-07-03T08:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing text efficiently</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13709105#M351363</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create your own template with the required text style in the dimension setting. Then copy your drawing (1st image) &amp;amp; paste it in that template drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 11:34:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13709105#M351363</guid>
      <dc:creator>shedgevJVQWW</dc:creator>
      <dc:date>2025-07-07T11:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing text efficiently</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13709283#M351367</link>
      <description>&lt;P&gt;I would start with a larger scale. That drawing is pretty hard to read.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 10:51:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13709283#M351367</guid>
      <dc:creator>RSomppi</dc:creator>
      <dc:date>2025-07-03T10:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing text efficiently</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13709795#M351390</link>
      <description>&lt;P&gt;If you are stuck with doing it all manually, a CUI macro can reduce the number of keystrokes.&lt;/P&gt;&lt;P&gt;*^C^C\_MOVE;\&lt;/P&gt;&lt;P&gt;Great video to get started if you have never used…&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=OGegAVVT8t0" target="_blank"&gt;https://www.youtube.com/watch?v=OGegAVVT8t0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise, peripheral, this is Macroworks 3.1…reduces each individual move to a single keystroke…in attached video.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jskalaXDDX5_0-1751552968954.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1549153iF0177AF85FC94E31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jskalaXDDX5_0-1751552968954.png" alt="jskalaXDDX5_0-1751552968954.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either (both) can be great all around time savers…&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 14:31:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13709795#M351390</guid>
      <dc:creator>jskalaXDDX5</dc:creator>
      <dc:date>2025-07-03T14:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing text efficiently</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13713065#M351449</link>
      <description>&lt;P&gt;Hi, not a trivial task via code. If you are running a full version and are able to use Python (PyRx). You can try a KD-Tree to quickly search and adjust text clusters. This is just a proof of concept, you may have to add in some math since you have text rotation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import traceback
from pyrx import Ap, Db, Ed, Ge
from itertools import pairwise

# hold text data, __it__, so we can presort by Y
class MT:
    def __init__(self, id: Db.ObjectId):
        mt = Db.MText(id)
        self.id = id
        self.ext = mt.getGeomExtents()
        # change this value to increase or decrease the search
        self.rad = (self.ext.maxPoint() - self.ext.minPoint()).length() * 0.5
        self.lay = mt.layer()

    def __lt__(self, other):
        return self.ext.maxPoint().y &amp;gt; other.ext.maxPoint().y

# get the data
def getData(ss: Ed.SelectionSet):
    mtdata: list[MT] = []
    for id in ss.objectIds():
        mtdata.append(MT(id))
    return sorted(mtdata)

# return the new ext so we can update
def moveText(id, point):
    mt = Db.MText(id, Db.OpenMode.kForWrite)
    mt.setLocation(point)
    return mt.getGeomExtents()

@Ap.Command()
def doit():
    try:
        # fill up the data
        ps, ss = Ed.Editor.select([(0, "MTEXT")])
        if ps != Ed.PromptStatus.eOk:
            raise RuntimeError("Selection Error! {}: ".format(ps))
        mtdata = getData(ss)

        # build the kd-tree from extents mid points
        pnts = Ge.Point3dArray()
        for mt in mtdata:
            pnts.append(mt.ext.midPoint())
        tree = Ge.Point3dTree(pnts)

        # search and group
        groups = set()
        for mt in mtdata:
            subgroup = []
            _idxs, _dists = tree.radiusSearch(mt.ext.midPoint(), mt.rad)
            for _i in _idxs:
                subgroup.append(_i)
            groups.add(tuple(sorted(subgroup)))

        # do something with the the groups
        for items in groups:
            for i, j in pairwise(items):
                mtdata[j].ext = moveText(mtdata[j].id, mtdata[i].ext.minPoint())

    except Exception as err:
        traceback.print_exception(err)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="before.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1549848i7909F2942943E5C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="before.png" alt="before.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="after.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1549849i8C0CC889AE1E82F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="after.png" alt="after.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 05:29:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13713065#M351449</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2025-07-07T05:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing text efficiently</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13713210#M351451</link>
      <description>&lt;P&gt;Thanks for this! looks like a solid solution, I'll test it out and let you know how it goes.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 04:38:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13713210#M351451</guid>
      <dc:creator>benjamin_sofo</dc:creator>
      <dc:date>2025-07-07T04:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing text efficiently</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13718001#M351593</link>
      <description>&lt;P&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17617195"&gt;@benjamin_sofo&lt;/a&gt;&lt;/SPAN&gt; Hi, have you been able to test this solution yet?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 16:45:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/spacing-text-efficiently/m-p/13718001#M351593</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2025-07-09T16:45:06Z</dc:date>
    </item>
  </channel>
</rss>

