<?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 Re: lisp to select all the text and mtext which has a common Y position in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12613811#M17080</link>
    <description>&lt;P&gt;A couple of suggestions, instead of entering X value just entsel a text and get its X value from insertion point of the text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the text has been moved or copied without say Ortho on its X value maybe slightly off so will not find all at that X value. That is why I suggested using a window selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 22:57:59 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2024-03-04T22:57:59Z</dc:date>
    <item>
      <title>lisp to select all the text and mtext which has a common Y position</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12609407#M17076</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a lisp which will erase all the texts and mtexts which have a common Y position in Autocad.&lt;/P&gt;&lt;P&gt;like select a text or mtext then based on the Y position of the selected text it should select all the text which are in the same alignment (same Y position). Then I may erase / move / copy or change properties based on my requirement.&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 17:45:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12609407#M17076</guid>
      <dc:creator>symoin</dc:creator>
      <dc:date>2024-03-03T17:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to select all the text and mtext which has a common Y position</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12609710#M17077</link>
      <description>&lt;P&gt;You need to select a text etc and get the Y value of insertion, then can use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq ss (ssget "X" '((0 . "*TEXT")(cons 410 (getvar 'ctab)))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You now have a selection set of all text in current space. You can check the Y value using Equal as the text can have very tiny differences of Y 0.0 v's 0.00000002 etc then delete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could using a combination of EXTMAX EXTMIN make a selection window with ssget so reducing the size of the selection set so will be faster to carry out task. Based on if text is bottom left alignment fairly straight forward.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 22:57:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12609710#M17077</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-03-03T22:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to select all the text and mtext which has a common Y position</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12609929#M17078</link>
      <description>&lt;P&gt;This is something I have and you do need to know what the coordinates are. It will automatically select all single line text when you enter in the appropriate coordinate it asks for. I should have something that would allow you to select a source entity and extract the coordinates out of it but not really sure where its located at the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt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N&gt;&lt;SPAN&gt;ssget&lt;/SPAN&gt; &lt;SPAN&gt;"X"&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;list&lt;/SPAN&gt;&lt;SPAN&gt; '(&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; . &lt;/SPAN&gt;&lt;SPAN&gt;"TEXT"&lt;/SPAN&gt;&lt;SPAN&gt;) '(&lt;/SPAN&gt;&lt;SPAN&gt;-4&lt;/SPAN&gt;&lt;SPAN&gt; . &lt;/SPAN&gt;&lt;SPAN&gt;"*,="&lt;/SPAN&gt;&lt;SPAN&gt;) dirtyylist)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN&gt;command&lt;/SPAN&gt; &lt;SPAN&gt;"PSELECT"&lt;/SPAN&gt;&lt;SPAN&gt; dirtyytest &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Mar 2024 02:01:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12609929#M17078</guid>
      <dc:creator>ryanatkins49056</dc:creator>
      <dc:date>2024-03-04T02:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to select all the text and mtext which has a common Y position</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12609933#M17079</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should also add using the QSELECT command at the command line also allows you to filterer down to the text via X and Y positions as well.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 02:05:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12609933#M17079</guid>
      <dc:creator>ryanatkins49056</dc:creator>
      <dc:date>2024-03-04T02:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to select all the text and mtext which has a common Y position</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12613811#M17080</link>
      <description>&lt;P&gt;A couple of suggestions, instead of entering X value just entsel a text and get its X value from insertion point of the text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the text has been moved or copied without say Ortho on its X value maybe slightly off so will not find all at that X value. That is why I suggested using a window selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 22:57:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12613811#M17080</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-03-04T22:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to select all the text and mtext which has a common Y position</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12614022#M17081</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6544920"&gt;@symoin&lt;/a&gt;&amp;nbsp;Here's an example using an SSGET filter to grab text with a common Y value. The downside is the text have to be at the EXACT Y location otherwise it will fail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:foo (/ e p s)
  ;; RJP » 2024-03-04
  (cond
    ((and (setq e (car (entsel "\nPick text to grab Y coordinate: ")))
	  (setq p (assoc 10 (entget e)))
     )
     (sssetfirst nil (setq s (ssdel e (ssget "_X" (list (assoc 0 (entget e)) '(-4 . "*,=,*") p)))))
     ;; Uncomment line below to delete
     ;; (and s (mapcar 'entdel (mapcar 'cadr (ssnamex s))))
    )
  )
  (princ)
)&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="2024-03-04_17-05-01.gif" style="width: 336px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1333125iDB4E24883DC1EBD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-03-04_17-05-01.gif" alt="2024-03-04_17-05-01.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 00:30:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-all-the-text-and-mtext-which-has-a-common-y/m-p/12614022#M17081</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2024-03-05T00:30:22Z</dc:date>
    </item>
  </channel>
</rss>

