<?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: Changing text with multiple instances, but not all need changed in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670679#M140944</link>
    <description>&lt;P&gt;I see but I am not sure srxText will help you here - it cannot distinguish between the text "in the left column" and a text "near a line" unless they reside on different layers. You will probably need to use a plain replacement (not regular expressions) but a specific object selection to filter just the texts you want to proces - e.g. by layer, by a fixed window position, by text style or similar. Only in this case you will be able to perform the batch replacement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz&amp;nbsp;" target="_blank"&gt;www.cadstudio.cz&amp;nbsp;&lt;/A&gt; &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2015 19:13:53 GMT</pubDate>
    <dc:creator>vladimir_michl</dc:creator>
    <dc:date>2015-06-09T19:13:53Z</dc:date>
    <item>
      <title>Changing text with multiple instances, but not all need changed</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670485#M140937</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am still wet behind the ears when it comes to AutoCAD. My company runs 2012 and I need to run a script or a lisp that will change contact numbers without changing the line numbers. &lt;/P&gt;
&lt;P&gt;Here's what I was using before, what do I need to change so that it only changes some of the text?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(load "srxtext.vlx")&lt;BR /&gt;(srxtext "Substring" "9" "5" "All")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Keith&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:04:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670485#M140937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-09T17:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text with multiple instances, but not all need changed</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670498#M140938</link>
      <description>You'll need to show us "srxtext.lsp" (the raw lisp code, not the vlx).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:12:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670498#M140938</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2015-06-09T17:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text with multiple instances, but not all need changed</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670510#M140939</link>
      <description>&lt;P&gt;This routine was developed by CADstudio, so you can try the luck posting in&amp;nbsp;&lt;A href="http://www.cadforum.cz/cadforum_en/default.asp" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;if&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/239200"&gt;@vladimir_michl&lt;/a&gt;&amp;nbsp;does not catch it here.&lt;/P&gt;
&lt;P&gt;Original routine...&amp;nbsp;&lt;A href="http://www.cadforum.cz/cadforum_en/download.asp?fileID=304" target="_self"&gt;link here.&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:22:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670510#M140939</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-06-09T17:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text with multiple instances, but not all need changed</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670548#M140940</link>
      <description>&lt;P&gt;Hearing chimes...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are the texts you need to update? The srxText utility allows to use regular expressions to perform the replacements. If you give me examples of old and new/required texts, I can make the neccessary regular expression for your case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz&amp;nbsp;" target="_blank"&gt;www.cadstudio.cz&amp;nbsp;&lt;/A&gt; &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:49:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670548#M140940</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2015-06-09T17:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text with multiple instances, but not all need changed</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670572#M140941</link>
      <description>&lt;P&gt;I need to change the contact number 9 to a 5, and a 10 to a 3 without changing the line numbers at the same time. They're both in the same layer as well. &lt;/P&gt;
&lt;P&gt;I don't know whether the contact numbers are the first or second occurance in the drawing. I was using (srxtext "Substring" "TDM" "T0M" "All") to change the drawing name, and it worked well. The trouble is that there are 300+ drawing that need the number change, and no other characters to link to. &lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Keith&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 18:06:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670572#M140941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-09T18:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text with multiple instances, but not all need changed</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670625#M140942</link>
      <description>&lt;P&gt;I really need the examples of your drawing texts, I do know what the text you call "contact numbers" look like - is it "Contact 5" or just "5" or "123/5" or "Line 123, contact 5"? Are the texts in different attributes? In a single one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz" target="_blank"&gt;www.cadstudio.cz&lt;/A&gt; &amp;nbsp;&lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 18:35:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670625#M140942</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2015-06-09T18:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text with multiple instances, but not all need changed</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670666#M140943</link>
      <description>&lt;P&gt;Sorry, &lt;/P&gt;
&lt;P&gt;I attached a pic of what I'm working on, I hope it helps. The text has exactly all hte same attributes and is in the same layer. I need to change the lower 9 and 10 to a 5 and 3 without changing the line numbers.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 19:04:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670666#M140943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-09T19:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text with multiple instances, but not all need changed</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670679#M140944</link>
      <description>&lt;P&gt;I see but I am not sure srxText will help you here - it cannot distinguish between the text "in the left column" and a text "near a line" unless they reside on different layers. You will probably need to use a plain replacement (not regular expressions) but a specific object selection to filter just the texts you want to proces - e.g. by layer, by a fixed window position, by text style or similar. Only in this case you will be able to perform the batch replacement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz&amp;nbsp;" target="_blank"&gt;www.cadstudio.cz&amp;nbsp;&lt;/A&gt; &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 19:13:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670679#M140944</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2015-06-09T19:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing text with multiple instances, but not all need changed</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670684#M140945</link>
      <description>&lt;P&gt;I see, thanks very much for your time and help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 19:17:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-text-with-multiple-instances-but-not-all-need-changed/m-p/5670684#M140945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-09T19:17:46Z</dc:date>
    </item>
  </channel>
</rss>

