<?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 needed for select specific text objects in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5724645#M320954</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@svpelt wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-size: 12.88px; line-height: 13.8px;"&gt;....&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It's working on text strings, but is there also a possibility to change this lisp so it could also&amp;nbsp;finds&amp;nbsp;numbers or letters only?&lt;/P&gt;
&lt;P&gt;For example; If I want to select al the text objects containing the "a" or "7" only? Instead&amp;nbsp;a word containing the letter "a".&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For the User's input to be the &lt;EM&gt;entire&lt;/EM&gt; string, rather than just a &lt;EM&gt;sub&lt;/EM&gt;string, change this part:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; (cons 1 (strcat "*" str "*"))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to just this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; (cons 1 str)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The asterisks are wildcards for any amount of [including none] additional content before and/or after the specified sub-string.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It will find &lt;EM&gt;single&lt;/EM&gt; characters as in your examples &lt;EM&gt;if&lt;/EM&gt; that's what the User supplies, but accepts strings of any length.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Also change the prompt to something more like: &amp;nbsp;"\nYour full string to search for: "]&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2015 13:00:35 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2015-07-17T13:00:35Z</dc:date>
    <item>
      <title>Lisp needed for select specific text objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5722656#M320948</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because I have a lot of drawings whit a lot of "dirt', I need to "clean up" first. That's why I am searching for a lisp that will find different text or mtext objects for me which contains the same letter/ number or text string (/part of a word, like *Auto* from "AutoCad").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quickselect is an option to find these objects and also filter is a sollution. But I want something simple. No window where you have to select several things first. It takes a lot of time to find&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want looks like (for example)&amp;nbsp;the -layer command. You'll get&amp;nbsp;a lot of options first and if you have chosen one, you can chose again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the qselect command also have a -qselect option; my macro should look like this;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;^C^C_-qselect;all;text;contents;&lt;/P&gt;&lt;P&gt;At last I need to give the number/ letter or text string where I'm looking for or select an text object with the text I want to select.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there somebody who can help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 12:42:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5722656#M320948</guid>
      <dc:creator>Sandervp</dc:creator>
      <dc:date>2015-07-16T12:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp needed for select specific text objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5722692#M320949</link>
      <description>&lt;P&gt;Go to lee-mac.com and look for Bfind.lsp in the free section.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 13:07:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5722692#M320949</guid>
      <dc:creator>Patchy</dc:creator>
      <dc:date>2015-07-16T13:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp needed for select specific text objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5722744#M320950</link>
      <description>Hello Patchy,&lt;BR /&gt;&lt;BR /&gt;Bfind.lsp is not a sollution......&lt;BR /&gt;&lt;BR /&gt;It tooks my whole directory. I was a little bit too fast.&lt;BR /&gt;&lt;BR /&gt;I have to make everything undone using my .bak files.</description>
      <pubDate>Thu, 16 Jul 2015 13:36:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5722744#M320950</guid>
      <dc:creator>Sandervp</dc:creator>
      <dc:date>2015-07-16T13:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp needed for select specific text objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5722753#M320951</link>
      <description>&lt;P&gt;There is a box for SEARCH ONLY in the dialog box and there is option for current drawing.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 13:40:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5722753#M320951</guid>
      <dc:creator>Patchy</dc:creator>
      <dc:date>2015-07-16T13:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp needed for select specific text objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5722785#M320952</link>
      <description>&lt;P&gt;Here's a [in simplest terms and minimally tested] way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(defun C:FSC (/ str ss) ; = Find String(s) by Content&lt;BR /&gt;&amp;nbsp; (setq str (getstring "\nYour [full or partial] string content to search for: "))&lt;BR /&gt;&amp;nbsp; (if (setq ss (ssget "_X" (list (cons 0 "*TEXT") (cons 1 (strcat "*" str "*")) (cons 410 (getvar 'ctab)))))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (sssetfirst nil ss); select/highlight/grip&lt;BR /&gt;&amp;nbsp; ); if&lt;BR /&gt;); defun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be enhanced, apart from the usual error-handling and other typical controls:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be made &lt;EM&gt;not&lt;/EM&gt; case-sensitive [the above &lt;EM&gt;is&lt;/EM&gt; case-sensitive].&lt;/P&gt;
&lt;P&gt;It could be made to also find Attribute Definitions and Dimensions with the desired string as part of &lt;EM&gt;override&lt;/EM&gt; text content, by leaving out the&amp;nbsp;&lt;SPAN&gt;(cons 0 "*TEXT") part.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Attributes &lt;EM&gt;in Blocks&lt;/EM&gt; are another matter and more complicated, but are also possible.]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It could be made to find such strings &lt;EM&gt;anywhere&lt;/EM&gt; in the drawing, by leaving out the&amp;nbsp;(cons 410 (getvar 'ctab)) part, but would &lt;EM&gt;not&lt;/EM&gt; be able to select/highlight/grip those not in the current space.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;EDIT -- &amp;nbsp;Looking back at the original question: &amp;nbsp;On the subject of "...or select an text object with the text I want to select...", that could be incorporated, but in basic form it would find only other objects containing the &lt;EM&gt;entire&lt;/EM&gt; content of the selected object, though it could be made to also find those that may have &lt;EM&gt;additional&lt;/EM&gt; content before and/or after that. &amp;nbsp;But I can imagine an approach that could accept a selected object and offer the chance to &lt;EM&gt;pare its content down&lt;/EM&gt; to some portion of it, and search for that in other objects. &amp;nbsp;Would that be desirable?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 14:02:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5722785#M320952</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-07-16T14:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp needed for select specific text objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5724293#M320953</link>
      <description>&lt;P&gt;Hello Kent Cooper,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your lisp!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's working on text strings, but is there also a possibility to change this lisp so it could also&amp;nbsp;finds&amp;nbsp;numbers or letters only?&lt;/P&gt;&lt;P&gt;For example; If I want to select al the text objects containing the "a" or "7" only? Instead&amp;nbsp;a word containing the letter "a".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 06:42:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5724293#M320953</guid>
      <dc:creator>Sandervp</dc:creator>
      <dc:date>2015-07-17T06:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp needed for select specific text objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5724645#M320954</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@svpelt wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-size: 12.88px; line-height: 13.8px;"&gt;....&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It's working on text strings, but is there also a possibility to change this lisp so it could also&amp;nbsp;finds&amp;nbsp;numbers or letters only?&lt;/P&gt;
&lt;P&gt;For example; If I want to select al the text objects containing the "a" or "7" only? Instead&amp;nbsp;a word containing the letter "a".&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For the User's input to be the &lt;EM&gt;entire&lt;/EM&gt; string, rather than just a &lt;EM&gt;sub&lt;/EM&gt;string, change this part:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; (cons 1 (strcat "*" str "*"))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to just this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; (cons 1 str)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The asterisks are wildcards for any amount of [including none] additional content before and/or after the specified sub-string.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It will find &lt;EM&gt;single&lt;/EM&gt; characters as in your examples &lt;EM&gt;if&lt;/EM&gt; that's what the User supplies, but accepts strings of any length.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Also change the prompt to something more like: &amp;nbsp;"\nYour full string to search for: "]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 13:00:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5724645#M320954</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-07-17T13:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp needed for select specific text objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5726610#M320955</link>
      <description>&lt;P&gt;Thanks again Kent!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have changed&amp;nbsp;&lt;SPAN&gt;(cons 1 (strcat "*" str "*")) into &amp;nbsp;(cons 1 str) and it works! It will find the whole words or letters/numbers were I'm looking for!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will help me a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It will save a lot of time also, instead using quick select every time!&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;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 06:52:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/5726610#M320955</guid>
      <dc:creator>Sandervp</dc:creator>
      <dc:date>2015-07-20T06:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp needed for select specific text objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/10193320#M320956</link>
      <description>&lt;P&gt;HELLO, Thanks very much for that but i want to pick on a text instead of type it.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 09:45:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/10193320#M320956</guid>
      <dc:creator>paliwal222</dc:creator>
      <dc:date>2021-03-28T09:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp needed for select specific text objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/12374622#M320957</link>
      <description>&lt;P&gt;Great answer, it really helped a lot&amp;nbsp;...&lt;/P&gt;&lt;P&gt;I`m just wondering if we could really enhance the script a little bit to select the nearest line to the specific Texts we searched for already because I searched for such lisp and I didn`t find one, Would Really appreciate your help.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 19:01:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-needed-for-select-specific-text-objects/m-p/12374622#M320957</guid>
      <dc:creator>joe.jamal7991</dc:creator>
      <dc:date>2023-11-13T19:01:27Z</dc:date>
    </item>
  </channel>
</rss>

