Find/Replace command that works with multiple lines of text in leader or Mtext

Find/Replace command that works with multiple lines of text in leader or Mtext

anderson51
Advocate Advocate
3,816 Views
9 Replies
Message 1 of 10

Find/Replace command that works with multiple lines of text in leader or Mtext

anderson51
Advocate
Advocate

Is there a find/replace command that will work with mtext or mleaders that have multiple lines of text within them?  I am unable to get the standard find/replace command to work with these types.

 

 

Much appreciation.

Anderson51

0 Likes
3,817 Views
9 Replies
Replies (9)
Message 2 of 10

anderson51
Advocate
Advocate

 

Example:

I want to "find" this entire string of mtext 

 

anderson51_0-1607982774936.png

 

 

And replace with this text string:

 

anderson51_1-1607982857949.png

 

 

0 Likes
Message 3 of 10

pendean
Community Legend
Community Legend
FIND command's replace option works just fine with MTEXT: perhaps you have something else going on?

Post your sample mtext in a DWG file and explain how we can do what you are trying to do that does not work.
0 Likes
Message 4 of 10

anderson51
Advocate
Advocate

Im am talking about the FIND commands FIND option not being able to recognize multiple lines of text at once.

 

0 Likes
Message 5 of 10

Kent1Cooper
Consultant
Consultant

Are they multiple lines because of a defined box width that is causing word wrapping, or is there a hard return that's moving to the next line?  FIND works in the former, not in the latter.  In this:

MtextWordWrap.PNG

if there is a space after "is" and the new line is caused by word wrapping, FIND will find "is a" in there.  If the new line is by hard return / Enter, it won't find that, and while the entity data entry for the content says:

  (1 . "this is\\Pa test")

with the \\P representing the hard return, FIND will not see it if I put in "is\\Pa".  [Nor if I used just one backslash, for those who are wondering.]

 

I have a feeling this has come up before, but I don't recall whether someone had a solution, but I'll leave the Searching to you.

Kent Cooper, AIA
0 Likes
Message 6 of 10

anderson51
Advocate
Advocate

Hard return

0 Likes
Message 7 of 10

anderson51
Advocate
Advocate

Also, It appears the standard FIND command is not recognizing the diameter symbol at all.

 

Good day sir

0 Likes
Message 8 of 10

pendean
Community Legend
Community Legend
Thanks for following up with better explanations;
Hard returns are ignored. always been the case. Nothing you can do about it, that is no longer a single sentence, basic language knowledge, doesn't your favorite word processor also work like that?

There is no allowance for symbols in FIND, since you cannot find it on your keyboard as a single key (a requirement): a limitation of symbols, keyboards, fonts and such.

Perhaps a LISP or other advanced customization language in AutoCAD can just delete the top line and leave the bottom line for you (as in your example): those forums are over here https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1
0 Likes
Message 9 of 10

ВeekeeCZ
Consultant
Consultant

Try THIS 

0 Likes
Message 10 of 10

Kent1Cooper
Consultant
Consultant

Continued over in the Customization Forum, >here<.

Kent Cooper, AIA
0 Likes