<?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 Apply a command to all text and mtext in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apply-a-command-to-all-text-and-mtext/m-p/10763553#M52258</link>
    <description>&lt;P&gt;Hello everyone&lt;BR /&gt;I've been trying to develop a code that would apply the &lt;STRONG&gt;tspaceinvaders&lt;/STRONG&gt; command only to &lt;STRONG&gt;text&lt;/STRONG&gt; and &lt;STRONG&gt;mtext&lt;/STRONG&gt; of the selection, and on asking "Step through each one for visual verification?" already selected the "N".&lt;BR /&gt;But what I was starting didn't have functionality. Please, would anyone know what could be changed in this code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:TINV (/ ss i elist)
(prompt "\nSelect an area: ")
(setq ss (ssget (list (cons 0 "TEXT"))))
(setq i -1)
(if ss
(repeat (sslength ss)
(setq elist (cdr (assoc -1 (entget (ssname ss (setq i (1+ i)))))))
(command "TSPACEINVADERS" elist ""); 
)
)
)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 17 Nov 2021 14:17:28 GMT</pubDate>
    <dc:creator>renanemeyer</dc:creator>
    <dc:date>2021-11-17T14:17:28Z</dc:date>
    <item>
      <title>Apply a command to all text and mtext</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apply-a-command-to-all-text-and-mtext/m-p/10763553#M52258</link>
      <description>&lt;P&gt;Hello everyone&lt;BR /&gt;I've been trying to develop a code that would apply the &lt;STRONG&gt;tspaceinvaders&lt;/STRONG&gt; command only to &lt;STRONG&gt;text&lt;/STRONG&gt; and &lt;STRONG&gt;mtext&lt;/STRONG&gt; of the selection, and on asking "Step through each one for visual verification?" already selected the "N".&lt;BR /&gt;But what I was starting didn't have functionality. Please, would anyone know what could be changed in this code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:TINV (/ ss i elist)
(prompt "\nSelect an area: ")
(setq ss (ssget (list (cons 0 "TEXT"))))
(setq i -1)
(if ss
(repeat (sslength ss)
(setq elist (cdr (assoc -1 (entget (ssname ss (setq i (1+ i)))))))
(command "TSPACEINVADERS" elist ""); 
)
)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:17:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apply-a-command-to-all-text-and-mtext/m-p/10763553#M52258</guid>
      <dc:creator>renanemeyer</dc:creator>
      <dc:date>2021-11-17T14:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Apply a command to all text and mtext</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apply-a-command-to-all-text-and-mtext/m-p/10763854#M52259</link>
      <description>&lt;P&gt;Try this one.&lt;/P&gt;
&lt;P&gt;It's not so simple due to it's not a regular built-in command but an express tool... probably just a LISP but didn't wonder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:InvAll ( / s)

  (if (setq s (ssget "_:L" '((0 . "*TEXT"))))
    (progn
      (command "_.select" s "")
      (vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) "TSPACEINVADERS\rP\r\r\r")))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 16:10:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apply-a-command-to-all-text-and-mtext/m-p/10763854#M52259</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-11-17T16:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Apply a command to all text and mtext</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apply-a-command-to-all-text-and-mtext/m-p/10764321#M52260</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Thank you very much&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I did some tests, in most cases they were great (in some not, but it's due to the range of distance that the tspace command works, I go to see how to adjust)&lt;BR /&gt;I appreciate your availability to evaluate and adjust the code, it will be very useful&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 18:51:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apply-a-command-to-all-text-and-mtext/m-p/10764321#M52260</guid>
      <dc:creator>renanemeyer</dc:creator>
      <dc:date>2021-11-17T18:51:11Z</dc:date>
    </item>
  </channel>
</rss>

