<?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>tema Find/Replace MText Carriage Return en AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/find-replace-mtext-carriage-return/m-p/7836706#M923620</link>
    <description>&lt;P&gt;Hi, everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There're a ton of MText elements where I would like to replace a specific set of characters, say "__" (double underscores) with a carriage return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forums around the web say to replace it with "\P" (case sensitive), but this does not work. When I replace them with "\P", the Mtext actually shows the "\P" in there, instead of inserting a carriage return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, if you select the Mtext and look at "Contents" property it shows "\\P" (double backslashes).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Initial Mtext: "TOP LINE__BOTTOM LINE"&lt;/LI&gt;&lt;LI&gt;Find/Replace "__" with "\P"&lt;/LI&gt;&lt;LI&gt;Mtext result:&amp;nbsp;&lt;SPAN&gt;"TOP LINE\PBOTTOM LINE"&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;"Contents" property:&amp;nbsp;"TOP LINE\\PBOTTOM LINE"&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone know how to accomplish this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edgar&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 01:27:47 GMT</pubDate>
    <dc:creator>ebsoares</dc:creator>
    <dc:date>2018-03-08T01:27:47Z</dc:date>
    <item>
      <title>Find/Replace MText Carriage Return</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/find-replace-mtext-carriage-return/m-p/7836706#M923620</link>
      <description>&lt;P&gt;Hi, everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There're a ton of MText elements where I would like to replace a specific set of characters, say "__" (double underscores) with a carriage return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forums around the web say to replace it with "\P" (case sensitive), but this does not work. When I replace them with "\P", the Mtext actually shows the "\P" in there, instead of inserting a carriage return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, if you select the Mtext and look at "Contents" property it shows "\\P" (double backslashes).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Initial Mtext: "TOP LINE__BOTTOM LINE"&lt;/LI&gt;&lt;LI&gt;Find/Replace "__" with "\P"&lt;/LI&gt;&lt;LI&gt;Mtext result:&amp;nbsp;&lt;SPAN&gt;"TOP LINE\PBOTTOM LINE"&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;"Contents" property:&amp;nbsp;"TOP LINE\\PBOTTOM LINE"&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone know how to accomplish this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edgar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 01:27:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/find-replace-mtext-carriage-return/m-p/7836706#M923620</guid>
      <dc:creator>ebsoares</dc:creator>
      <dc:date>2018-03-08T01:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Find/Replace MText Carriage Return</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/find-replace-mtext-carriage-return/m-p/7836732#M923622</link>
      <description>&lt;P&gt;Try replacing it with "&lt;FONT color="#ff0000"&gt;\\&lt;/FONT&gt;P" with the &lt;FONT color="#ff0000"&gt;&lt;EM&gt;double&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp; backslash.&amp;nbsp; A backslash is a control character, and to get it to read it as a backslash, it needs another.&amp;nbsp; Even though in the Properties palette display of contents it may &lt;EM&gt;show&lt;/EM&gt;&amp;nbsp; like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THIS IS&lt;FONT color="#ff0000"&gt;\&lt;/FONT&gt;PA TEST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you look at the actual content as stored in entity data, it looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(1 . "THIS IS&lt;FONT color="#ff0000"&gt;\\&lt;/FONT&gt;PA TEST")&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 01:51:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/find-replace-mtext-carriage-return/m-p/7836732#M923622</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-03-08T01:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find/Replace MText Carriage Return</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/find-replace-mtext-carriage-return/m-p/7838507#M923714</link>
      <description>&lt;P&gt;Hi, Kent. Thanks for the tip... but it didn't work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we replace&amp;nbsp;it instead with "\\P", then the Mtext shows&amp;nbsp;&lt;SPAN&gt;"TOP LINE\\PBOTTOM LINE"&lt;/SPAN&gt;&amp;nbsp;and the "Contents" property shows something like this: "TOP LINE\\\\PBOTTOM LINE" (four backslashes).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here, I found this forum where Rodolfo found the answer: "&lt;A title="Add an 'Enter' using Find and Replace" href="https://forums.autodesk.com/t5/autocad-forum/add-an-enter-using-find-and-replace/td-p/3556300" target="_blank"&gt;Add an 'Enter' using Find and Replace&lt;/A&gt;" -&amp;nbsp;instead of "\P" we should use the Unicode "&lt;SPAN&gt;&lt;STRONG&gt;\U+000A&lt;/STRONG&gt;".&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I just tested it and it works!!!&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Emoticono muy feliz" title="Emoticono muy feliz" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Either way, thanks again for the tip, Kent -&amp;nbsp;your help has always been awesome!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edgar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:11:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/find-replace-mtext-carriage-return/m-p/7838507#M923714</guid>
      <dc:creator>ebsoares</dc:creator>
      <dc:date>2018-03-08T16:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find/Replace MText Carriage Return</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/find-replace-mtext-carriage-return/m-p/11224647#M1081503</link>
      <description>&lt;P&gt;It is still a pain in the but to find/replace Mtext in autocad even with the "\U+000A" function (which it does work), especially when you have to edit a lot of drawings through a lisp routine. The problem I face then, although the text have been replaced, it makes it a weird format, until you go into that mtext edit and exit afterwards without editing, and then the layout will readjust to the correct format.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stephanYN6LU_0-1654780491726.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1077971i1A24850F9555284B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stephanYN6LU_0-1654780491726.png" alt="stephanYN6LU_0-1654780491726.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Above is an example before going into the editor, and below is what happens if I do what I have described&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stephanYN6LU_1-1654780620325.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1077972i36AFAAEA3C3FD1E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stephanYN6LU_1-1654780620325.png" alt="stephanYN6LU_1-1654780620325.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stephanYN6LU_2-1654780634430.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1077974iB1BBEC6FFB4D3648/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stephanYN6LU_2-1654780634430.png" alt="stephanYN6LU_2-1654780634430.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please take note I haven't made any changes except going into the editor and exiting. It is a bit annoying to fix the layout, I hope the devs can make our lives a lot easier with a patch to fix this issue.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 13:19:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/find-replace-mtext-carriage-return/m-p/11224647#M1081503</guid>
      <dc:creator>stephanYN6LU</dc:creator>
      <dc:date>2022-06-09T13:19:01Z</dc:date>
    </item>
  </channel>
</rss>

