<?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 FOR SELECTING TEXT HAVING SAME TEXT CONTENT &amp;amp; TRANSFERING THEM INTO in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065285#M103652</link>
    <description>&lt;P&gt;Yes, the Customization Forum would be a better place, but when you ask there, I have&amp;nbsp;some questions.&amp;nbsp; If the text content is, for example,&amp;nbsp;"REVISION 1" that you want to put all Text with that content on a Layer with that name, should it also put those whose content is&amp;nbsp;"Revision 1" on that Layer [i.e. should it&amp;nbsp;not be case-sensitive]?&amp;nbsp; Should it put only objects whose &lt;EM&gt;entire&lt;/EM&gt;&amp;nbsp; content is the specified string, or all objects that &lt;EM&gt;contain&lt;/EM&gt;&amp;nbsp; that string even if they might have more in them [such as "REVISION 1 13/06/18"]?&amp;nbsp; Does the Layer already exist?&amp;nbsp; I'd probably come up with some more if trying to work something out.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 13:16:14 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2018-06-13T13:16:14Z</dc:date>
    <item>
      <title>LISP FOR SELECTING TEXT HAVING SAME TEXT CONTENT &amp; TRANSFERING THEM INTO A LAYER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8064989#M103648</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i seek you help to provide me a lisp which could me following thing done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LISP FOR SELECTING ALL THE TEXT HAVING SAME TEXT CONTENT AND TRANSFERING THEM INTO A LAYER OF TEXT CONTENT NAME.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance. plz reply soon.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 10:45:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8064989#M103648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-13T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: LISP FOR SELECTING TEXT HAVING SAME TEXT CONTENT &amp; TRANSFERING THEM INTO</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065011#M103649</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;plz reply soon.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you're in a hurry, you might try posting in the right forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 11:01:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065011#M103649</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2018-06-13T11:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: LISP FOR SELECTING TEXT HAVING SAME TEXT CONTENT &amp; TRANSFERING THEM INTO</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065170#M103650</link>
      <description>&lt;P&gt;There are several ways to do this,&lt;BR /&gt;but try this:&lt;/P&gt;&lt;PRE&gt;(defun c:Trl (/ fromLay toLay ss objdata)&lt;BR /&gt; (setq fromLay (getstring t "\nName of the current layer:")&lt;BR /&gt; toLay (getstring t "\nNew layer: ")&lt;BR /&gt; ss (ssget "_X" (list (cons 8 fromLay)))&lt;BR /&gt; )&lt;BR /&gt; (repeat (sslength ss)&lt;BR /&gt; (setq&lt;BR /&gt; objdata (entget (ssname ss 0))&lt;BR /&gt; objdata (subst (cons 8 toLay) (cons 8 fromLay) objdata)&lt;BR /&gt; )&lt;BR /&gt; (entmod objdata)&lt;BR /&gt; (ssdel (ssname ss 0) ss)&lt;BR /&gt; )&lt;BR /&gt; (princ)&lt;BR /&gt; )&lt;BR /&gt;(prompt "\n Type &amp;gt;&amp;gt; TRL &amp;lt;&amp;lt; ")&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Júnior Nogueira.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;Por favor,&amp;nbsp;&amp;nbsp;Aceitar como Solução se meu post&amp;nbsp;te ajudar.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;&lt;SPAN&gt;Please Accept as Solution if my post helps you.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 12:21:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065170#M103650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-13T12:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: LISP FOR SELECTING TEXT HAVING SAME TEXT CONTENT &amp; TRANSFERING THEM INTO</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065261#M103651</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;PRE&gt;....&lt;BR /&gt; (setq fromLay (getstring t "\nName of the current layer:")&lt;BR /&gt; toLay (getstring t "\nNew layer: ")&lt;BR /&gt;...&lt;/PRE&gt;
&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;SPAN&gt;[That's not really what they're looking to do, but if it were, it could be done much more concisely with a CHPROP command, which would change the Layer of the entire selection all together.]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:06:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065261#M103651</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-06-13T13:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: LISP FOR SELECTING TEXT HAVING SAME TEXT CONTENT &amp; TRANSFERING THEM INTO</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065285#M103652</link>
      <description>&lt;P&gt;Yes, the Customization Forum would be a better place, but when you ask there, I have&amp;nbsp;some questions.&amp;nbsp; If the text content is, for example,&amp;nbsp;"REVISION 1" that you want to put all Text with that content on a Layer with that name, should it also put those whose content is&amp;nbsp;"Revision 1" on that Layer [i.e. should it&amp;nbsp;not be case-sensitive]?&amp;nbsp; Should it put only objects whose &lt;EM&gt;entire&lt;/EM&gt;&amp;nbsp; content is the specified string, or all objects that &lt;EM&gt;contain&lt;/EM&gt;&amp;nbsp; that string even if they might have more in them [such as "REVISION 1 13/06/18"]?&amp;nbsp; Does the Layer already exist?&amp;nbsp; I'd probably come up with some more if trying to work something out.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:16:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065285#M103652</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-06-13T13:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: LISP FOR SELECTING TEXT HAVING SAME TEXT CONTENT &amp; TRANSFERING THEM INTO</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065296#M103653</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;it can be done by &lt;STRONG&gt;FIND&lt;/STRONG&gt; command ( without lisp ) . fill your content in &lt;U&gt;Find What&lt;/U&gt; :&amp;nbsp; then press &lt;U&gt;Find&lt;/U&gt; button then press &lt;U&gt;Create Selection Set ( All )&lt;/U&gt; button to find after that you have selected texts with grips . Now directly you can change the layer and as you wish .&amp;nbsp;&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="olp.png" style="width: 422px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/511601iBE02FEAA1A57C8D7/image-dimensions/422x271?v=v2" width="422" height="271" role="button" title="olp.png" alt="olp.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:21:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065296#M103653</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2018-06-13T13:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: LISP FOR SELECTING TEXT HAVING SAME TEXT CONTENT &amp; TRANSFERING THEM INTO</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065835#M103654</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;I think I was mistaken a little.&lt;BR /&gt;but I found this code in the forum searches I modified only one line and I believe it will meet the need to @Anonymous&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun C:TFD (/ *error* doc mss n tc tclist duplist tcss); = Text [&amp;amp; Mtext] Find Duplicates
  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break"))
      (princ (strcat "\nError: " errmsg))
    ); if
    (setvar cmdecho 1)
    (vla-endundomark doc)
    (princ)
  ); defun - *error*
  (vla-startundomark (setq doc (vla-get-activedocument (vlax-get-acad-object))))
  (if (setq mss (ssget "_X" (list '(0 . "*TEXT") (cons 410 (getvar 'ctab)))))
    (progn ; then
      (setvar 'cmdecho 0)
      (setq TFDss (ssadd)); initially empty duplicates selection set
      (repeat (setq n (sslength mss))
        (setq tc (cdr (assoc 1 (entget (ssname mss (setq n (1- n)))))))
          ; = text content of each
        (cond
          ((member tc duplist))
            ; = already in duplicates list [do nothing]
          ((member tc tclist) (setq duplist (cons tc duplist)))
            ; = already in content list [put in duplicates list]
          ((setq tclist (cons tc tclist)))
            ; = first instance of it [put in content list]
        ); cond
      ); repeat
      (setq col 0); base value for counting color numbers upward
      (foreach tc duplist ; assign colors to sets of duplicates
        (setq tcss (ssget "_X" (list '(0 . "*TEXT") (cons 1 tc))))
	(command "_.layer" "_make" "Text" "_color" 7 "" "")
;;;        (command "_.chprop" tcss "" "_color" (setq col (1+ col)) "")
	&lt;FONT color="#0000FF"&gt;(command "_.chprop"  tcss "" "_layer" "Text" "")&lt;/FONT&gt;
        (repeat (setq n (sslength tcss)) (ssadd (ssname tcss (setq n (1- n))) TFDss))
          ; put in collective duplicates selection set
      ); foreach
      (setvar 'cmdecho 1)
      (if (&amp;gt; (sslength TFDss) 0)
        (sssetfirst nil TFDss); select/grip/highlight
        (prompt "\nNo Text/Mtext objects with duplicate text content found."); else
      ); if
    ); progn
  ); if
  (vla-endundomark doc)
  (princ)
); defun -- C:TFD

(prompt "\nType TFD for Text/Mtext - Find Duplicates.")&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 16:10:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/8065835#M103654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-13T16:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: LISP FOR SELECTING TEXT HAVING SAME TEXT CONTENT &amp; TRANSFERING THEM INTO</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/12251185#M103655</link>
      <description>&lt;P&gt;Next Level:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to assign this layer to the nearest line...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to write a lisp routine where I will select a group of lines and texts then it will make a layer with a name of the text content and change the layer of the nearby line with newly created layer name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 15:17:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/12251185#M103655</guid>
      <dc:creator>nislam04</dc:creator>
      <dc:date>2023-09-19T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: LISP FOR SELECTING TEXT HAVING SAME TEXT CONTENT &amp; TRANSFERING THEM INTO A LAYER</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/13381793#M103656</link>
      <description>&lt;P&gt;Is it possible to modify the TFD lisp to ask where to look for the duplicates in the first step? I don´t know too much about lisp programming and I´d really appreciate the help, thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 15:38:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-selecting-text-having-same-text-content-amp-transfering/m-p/13381793#M103656</guid>
      <dc:creator>dimber13</dc:creator>
      <dc:date>2025-03-20T15:38:56Z</dc:date>
    </item>
  </channel>
</rss>

