<?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: Deleting specific text after a symbol in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587862#M71729</link>
    <description>&lt;P&gt;Ah, thanks. What about if the whole thing is a block and I want it to do the same thing for every line?&lt;/P&gt;</description>
    <pubDate>Tue, 31 Aug 2021 15:51:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-31T15:51:23Z</dc:date>
    <item>
      <title>Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10586293#M71721</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20210830_201614.jpg" style="width: 4000px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/959175iEA8CEA70E0DCB215/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20210830_201614.jpg" alt="20210830_201614.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; I am trying to find a way to delete all the text after the "~" symbol. If there is a way I would really appreciate&amp;nbsp; it, it will save a lot of time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 03:17:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10586293#M71721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T03:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10586401#M71722</link>
      <description>&lt;P&gt;ddedit command and pick the text and erase. thanks&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="txt1s.JPG" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/959186i242DD018D4F82F96/image-size/small?v=v2&amp;amp;px=200" role="button" title="txt1s.JPG" alt="txt1s.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 04:35:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10586401#M71722</guid>
      <dc:creator>ennujozlagam</dc:creator>
      <dc:date>2021-08-31T04:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10586568#M71723</link>
      <description>&lt;P&gt;Start with posting a dwg with example(s).&lt;/P&gt;
&lt;P&gt;Also, do you mean to remove all the text behind a hyphen to the end of the line?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 06:42:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10586568#M71723</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-08-31T06:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10586597#M71724</link>
      <description>&lt;P&gt;From the ~ to the end&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 07:00:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10586597#M71724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T07:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10586601#M71725</link>
      <description>&lt;P&gt;Yes from behind the ~ to the end, sorry&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 07:01:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10586601#M71725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T07:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587147#M71726</link>
      <description>&lt;P&gt;Is that &lt;EM&gt;one&lt;/EM&gt; big Mtext object, or is each line a &lt;EM&gt;separate&lt;/EM&gt; Text or Mtext object?&amp;nbsp; [This kind of question is why a sample .dwg file is helpful.]&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 11:25:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587147#M71726</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-31T11:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587222#M71727</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes from behind the ~ to the end....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If in each Text/Mtext object, try this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(vl-load-com)
(defun C:TDAT (/ ss n tobj txt); = Text: Delete After Tilde
  (if (setq ss (ssget "_:L" '((0 . "*TEXT") (1 . "*~*"))))
    (repeat (setq n (sslength ss)); then
      (setq tobj (vlax-ename-&amp;gt;vla-object (ssname ss (setq n (1- n)))))
      (vla-put-TextString tobj
        (substr (setq txt (vla-get-TextString tobj)) 1 (1+ (vl-string-position 126 txt)))
      ); ...put...
    ); repeat
  ); if
  (princ)
); defun&lt;/LI-CODE&gt;
&lt;P&gt;But if your image is one Mtext object, and you want such deletions for every line in it, not just the whole thing after the first ~, that's another story [but also possible].&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 12:00:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587222#M71727</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-31T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587845#M71728</link>
      <description>&lt;P&gt;Every line is separate&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 15:44:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587845#M71728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T15:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587862#M71729</link>
      <description>&lt;P&gt;Ah, thanks. What about if the whole thing is a block and I want it to do the same thing for every line?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 15:51:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587862#M71729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T15:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587907#M71730</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... What about if the whole thing is a block and I want it to do the same thing for every line?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you really mean the whole thing is a &lt;FONT color="#000000"&gt;Block&lt;/FONT&gt; &lt;EM&gt;as AutoCAD uses the term&lt;/EM&gt;, or the whole thing is "blocked together" as one &lt;FONT color="#000000"&gt;Mtext&lt;/FONT&gt; object?&amp;nbsp; It should be possible to do it either way, but the approaches would be very different.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 16:02:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587907#M71730</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-31T16:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587960#M71731</link>
      <description>&lt;P&gt;It worked but I also the ~ symbol to delete aswell&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 16:24:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587960#M71731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T16:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587987#M71732</link>
      <description>&lt;P&gt;Is blocked all together.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 16:37:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587987#M71732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T16:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587997#M71733</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It worked but I also the ~ symbol to delete aswell&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then the Topic heading and Message 5 should be worded differently.&amp;nbsp; But if that's what you need, change this line:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(substr (setq txt (vla-get-TextString tobj)) 1 (1+ (vl-string-position 126 txt)))&lt;/LI-CODE&gt;
&lt;P&gt;to this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(substr (setq txt (vla-get-TextString tobj)) 1 (vl-string-position 126 txt))&lt;/LI-CODE&gt;
&lt;P&gt;And in the image, it looks like there are spaces before the ~'s.&amp;nbsp; If you also want those spaces removed, that's possible.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 16:42:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587997#M71733</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-31T16:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587999#M71734</link>
      <description>&lt;P&gt;Easy for that, use Find Replace.&lt;/P&gt;&lt;P&gt;Type in Find.&lt;/P&gt;&lt;P&gt;Find What:&amp;nbsp; &amp;nbsp;Put your ~&amp;nbsp; &amp;nbsp;(if you have spaces to remove put them as well)&lt;/P&gt;&lt;P&gt;Replace with:&amp;nbsp; (DONT PUT ANYTHING)&lt;/P&gt;&lt;P&gt;Then select REPLACE ALL&amp;nbsp; or&amp;nbsp; Select the Blocks you want this to happen with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you already ran the lisp command and picked the blocks when you use find type P or Previous when selecting.&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="jrreid_0-1630428218360.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/959440i72D8A84FC11C612A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jrreid_0-1630428218360.png" alt="jrreid_0-1630428218360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JRR.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 16:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10587999#M71734</guid>
      <dc:creator>jrreid</dc:creator>
      <dc:date>2021-08-31T16:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588004#M71735</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is blocked all together.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That leaves the same ambiguity as before.&amp;nbsp; What is the object?&amp;nbsp; Pick it and look at the top of the Properties palette.&amp;nbsp; What does it say -- "Block Reference" or "Mtext" or something else?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 16:44:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588004#M71735</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-31T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588037#M71736</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16304288769952174373409026285097.jpg" style="width: 4000px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/959446iC18D2BB095448578/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16304288769952174373409026285097.jpg" alt="16304288769952174373409026285097.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 16:55:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588037#M71736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T16:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588203#M71737</link>
      <description>&lt;P&gt;So inside the Block definition, are all the lines of text separate objects, or one Mtext object?&amp;nbsp; Get into the Block with BEDIT or REFEDIT, and you can find out.&amp;nbsp; If they're separate objects, are they in fact Text/Mtext, or are they Attribute definitions?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 17:59:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588203#M71737</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-31T17:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588223#M71738</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16304330551431708377169502376545.jpg" style="width: 4000px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/959478iB4DF9182D4006682/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16304330551431708377169502376545.jpg" alt="16304330551431708377169502376545.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Not sure, but it looks like this.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 18:04:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588223#M71738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T18:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588534#M71739</link>
      <description>&lt;P&gt;They appear to be Attributes.&amp;nbsp; That would mean what you want to edit is the Attribute &lt;EM&gt;values&lt;/EM&gt; in a particular insertion of that Block, not anything in the Block definition [what you're seeing are their &lt;EM&gt;tags&lt;/EM&gt;].&amp;nbsp; FIND can do text replacements, but I don't think it can handle finding a particular character and deleting it and all that follows it, regardless of what that is.&amp;nbsp; But I don't use Attributes very much, so it would take me some research to find a way to do what you want -- maybe someone else with more Attribute experience will jump in before I get around to it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 20:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588534#M71739</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-08-31T20:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting specific text after a symbol</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588739#M71740</link>
      <description>&lt;P&gt;Okay, thank you very much. I appreciate the help, previous step will help a lot though in most circumstances.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 22:21:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/deleting-specific-text-after-a-symbol/m-p/10588739#M71740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T22:21:06Z</dc:date>
    </item>
  </channel>
</rss>

