<?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: Mtext lines formatted differently, Find-Replace screwing up in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10715056#M68877</link>
    <description>&lt;P&gt;I reported this bug to Autodesk and this was their response:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Thank you again for your patience and the input you provided about this MTEXT editing issue issue with AutoCAD. The Product Team has been able to reproduce the issue and it has been logged with the development team for a fix in a future update. The reference ID is &lt;STRONG&gt;ACD-24756&lt;/STRONG&gt;.&amp;nbsp;Although the team is investigating a solution for a fix in a future update, I cannot commit to an exact date as conditions do change.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 16:44:14 GMT</pubDate>
    <dc:creator>nrz13</dc:creator>
    <dc:date>2021-10-26T16:44:14Z</dc:date>
    <item>
      <title>Mtext lines formatted differently, Find-Replace screwing up</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701573#M68869</link>
      <description>&lt;P&gt;I use an mtext with a larger text in the first line and smaller in the second.&amp;nbsp; When using Find and Replace, the 2nd line is partially picking up formatting from above. I tried removing Columns which was set up in the mtext already (hate that anyway).&amp;nbsp; No solution found.&amp;nbsp; I hope that someone might have an idea.&amp;nbsp; I chose to Find "&lt;EM&gt;Electrical First Floor Plan Partial&lt;/EM&gt;" and Replace with "&lt;EM&gt;Electrical Plan Partial&lt;/EM&gt;."&amp;nbsp; Something so simple is causing a headache.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mtext lines.jpg" style="width: 418px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/979616i024B80D6DA897442/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mtext lines.jpg" alt="Mtext lines.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 15:19:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701573#M68869</guid>
      <dc:creator>s60088g</dc:creator>
      <dc:date>2021-10-20T15:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Mtext lines formatted differently, Find-Replace screwing up</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701672#M68870</link>
      <description>&lt;P&gt;What happens if you replace "AL FIRST FL" with "AL FL" ?&lt;/P&gt;
&lt;P&gt;You might post a drawing .. sounds like you might have some heavy internal formatting.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 15:54:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701672#M68870</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2021-10-20T15:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mtext lines formatted differently, Find-Replace screwing up</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701829#M68871</link>
      <description>&lt;P&gt;I just saved the text in a file to attach here.&amp;nbsp; Thanks.&amp;nbsp; And I mistyped the order of the words which is irrelevant.&amp;nbsp; Anyway, have a look.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 16:52:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701829#M68871</guid>
      <dc:creator>s60088g</dc:creator>
      <dc:date>2021-10-20T16:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mtext lines formatted differently, Find-Replace screwing up</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701887#M68872</link>
      <description>&lt;P&gt;I can confirm this bug in AutoCAD 2022.1 using new MTEXT in a new drawing (did not use yours).&amp;nbsp; No matter that the second line has been hard-returned with the Enter key, find and replace of the middle words on the first line drops the "OPTIO" down to the second line.&lt;BR /&gt;&lt;BR /&gt;Note that the "N" remains small when I tried it.&amp;nbsp; I've tried it with standard Windows fonts Arial and Verdana, as well as with bold, italic, and underline.&amp;nbsp; All exhibit the same bug.&lt;BR /&gt;&lt;BR /&gt;I'd be interested to see if anyone has a workaround for this bug.&amp;nbsp; Be sure to report it through your Autodesk Account.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 17:24:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701887#M68872</guid>
      <dc:creator>nrz13</dc:creator>
      <dc:date>2021-10-20T17:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mtext lines formatted differently, Find-Replace screwing up</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701897#M68873</link>
      <description>&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1040371"&gt;@s60088g&lt;/a&gt; Expand FIND command (find the little arrow button on the pop-up): those expanded list of options are all you can do with the stock command. I don't see a fix to what you wish, but I've not rigorously tested it either.</description>
      <pubDate>Wed, 20 Oct 2021 17:27:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701897#M68873</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2021-10-20T17:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mtext lines formatted differently, Find-Replace screwing up</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701900#M68874</link>
      <description>&lt;P&gt;Best workaround I have at the moment is to find and replace the selection with a bunch of spaces (try 5 to 10), then replace the number of spaces (+1) with a single space.&amp;nbsp; It's ugly, but relatively fast if you have a lot of them to change.&amp;nbsp; Hopefully a better workaround emerges...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 17:48:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10701900#M68874</guid>
      <dc:creator>nrz13</dc:creator>
      <dc:date>2021-10-20T17:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Mtext lines formatted differently, Find-Replace screwing up</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10702009#M68875</link>
      <description>&lt;P&gt;Haha, thanks!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&amp;nbsp; I just changed the titles all by hand... all 45+&amp;nbsp;&amp;nbsp; !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did wonder if a 'return' was the issue.&amp;nbsp; It's so odd.&amp;nbsp; It's handy to use one Mtext with a hierarchy of font sizes rather than individual lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 18:25:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10702009#M68875</guid>
      <dc:creator>s60088g</dc:creator>
      <dc:date>2021-10-20T18:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Mtext lines formatted differently, Find-Replace screwing up</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10702076#M68876</link>
      <description>&lt;P&gt;It does appear to be a bug ... I manually formatted the text ( which is different than the original ) but the find and replace still messes it up.&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;;; RJP manually formatted
"{\\H0.75x;\\LFIRST FLOOR ELECTRICAL PARTIAL}\\P{\\H0.5x;OPTIONAL 3-CAR SIDELOAD GARAGE\\P\\H0.75x;SCALE: 1/4\" = 1'-0\"}"
;; After replacement
"{\\H4x;ELECTRICAL PLAN PARTIAL\\POPTION\\H0.66667x;AL 3-CAR SIDELOAD GARAGE\\P\\H0.75x;SCALE: 1/4\" = 1'-0\"}"
;; Formatted text in drawing
"{\\H0.75x;\\LFIRST FLOOR ELECTRICAL PARTIAL\n\\H0.66667x;\\lOPTIONAL 3-CAR SIDELOAD GARAGE\n\\H0.75x;SCALE: 1/4\" = 1'-0\"}"
;; After replacement
"{\\H0.75x;\\LELECTRICAL PLAN PARTIAL\nOPTION\\H0.66667x;\\lAL 3-CAR SIDELOAD GARAGE\n\\H0.75x;SCALE: 1/4\" = 1'-0\"}"
&lt;/LI-CODE&gt;
&lt;P&gt;Too bad you already did these manually, this code seems to cleanup the mess.&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:foo (/ o s)
  (if (setq s (ssget '((0 . "MTEXT") (1 . "*ELECTRICAL PARTIAL*"))))
    (foreach e (vl-remove-if 'listp (mapcar 'cadr (ssnamex s)))
      (vla-put-textstring
	(setq o (vlax-ename-&amp;gt;vla-object e))
	(vl-string-subst
	  "ELECTRICAL PLAN PARTIAL"
	  "FIRST FLOOR ELECTRICAL PARTIAL"
	  (vla-get-textstring o)
	)
      )
    )
  )
  (princ)
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-10-20_12-58-37.gif" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/979702iEEA438DAD5266F6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-10-20_12-58-37.gif" alt="2021-10-20_12-58-37.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 19:00:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10702076#M68876</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2021-10-20T19:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mtext lines formatted differently, Find-Replace screwing up</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10715056#M68877</link>
      <description>&lt;P&gt;I reported this bug to Autodesk and this was their response:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Thank you again for your patience and the input you provided about this MTEXT editing issue issue with AutoCAD. The Product Team has been able to reproduce the issue and it has been logged with the development team for a fix in a future update. The reference ID is &lt;STRONG&gt;ACD-24756&lt;/STRONG&gt;.&amp;nbsp;Although the team is investigating a solution for a fix in a future update, I cannot commit to an exact date as conditions do change.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 16:44:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/mtext-lines-formatted-differently-find-replace-screwing-up/m-p/10715056#M68877</guid>
      <dc:creator>nrz13</dc:creator>
      <dc:date>2021-10-26T16:44:14Z</dc:date>
    </item>
  </channel>
</rss>

