How to find/replace multiline text

How to find/replace multiline text

iCs-tna
Advocate Advocate
1,158 Views
11 Replies
Message 1 of 12

How to find/replace multiline text

iCs-tna
Advocate
Advocate

command: find

 

Is it possible to find multiline text (MTEXT) and replace it with a mtext?

0 Likes
1,159 Views
11 Replies
Replies (11)
Message 2 of 12

Valentin_CAD
Mentor
Mentor

@iCs-tna ,

 

Do a QSELECT and use the Express > Text > Convert to MText

ValentinWSP_0-1641983360766.png

 

 

 

ValentinWSP_0-1641983070028.png

 



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 3 of 12

imadHabash
Mentor
Mentor

Hi,

You can replace multi-line text with text , But after that you can convert this modified text to mtext by TXT2MTXT (Command) .

 

Imad Habash

EESignature

0 Likes
Message 4 of 12

iCs-tna
Advocate
Advocate

I guess you misunderstood

by using the command find/replace I want to replace a multiline text by another multiline text.

e.g. I have 10 mtext with a MTEXT "dog cat" and I want to replace it with "mouse bird":

                                                      iCstna_1-1641983829987.png                             iCstna_2-1641983893175.png

 

 

 

 

 

iCstna_0-1641983689674.png

 

0 Likes
Message 5 of 12

imadHabash
Mentor
Mentor

>> I want to replace a multiline text by another multiline text.

It's Not applicable . 

Imad Habash

EESignature

0 Likes
Message 6 of 12

Valentin_CAD
Mentor
Mentor

@iCs-tna ,

 

This is only possible if there is no ENTER or BREAK between the words.



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 7 of 12

maratovich
Advisor
Advisor

Maybe this will help you - AutoReplaceCAD 

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 8 of 12

ChicagoLooper
Mentor
Mentor

Yes, you can use FIND command to search for dog cat,then once found, replace it with mouse bird. Here's a video that demonstrates how it's done.

 

To watch the video, click >>HERE<<.

 

101.jpg

Chicagolooper

EESignature

0 Likes
Message 9 of 12

Kent1Cooper
Consultant
Consultant

@ChicagoLooper wrote:

Yes, you can use FIND command to search for dog cat,then once found, replace it with mouse bird. ....


... provided the two lines in the Mtext are the result of word wrapping based on the width of the Mtext "box."  If they are the result of an Enter/hard-return/line-feed, see Message 6 from @Valentin_CAD .

Kent Cooper, AIA
Message 10 of 12

ChicagoLooper
Mentor
Mentor

Of course that's true, but who said the OP has a hard return?

The OP said 10 instances of dog cat. See post #4. If there's a hard return then do it twice, first time for dog and second time for cat.

Chicagolooper

EESignature

0 Likes
Message 11 of 12

s.borello
Advisor
Advisor

Yes.

0 Likes
Message 12 of 12

Kent1Cooper
Consultant
Consultant

@ChicagoLooper wrote:

Of course that's true, but who said the OP has a hard return?  .... See post #4. ....


No one said they did, but we surmised the possibility, and wanted them to know of its effect on the issue.  That's why Message 6 contains, and the second sentence in Message 9 starts with, "if."

 

Looking at the dog/cat image in Message 4, since it shows the width of the Mtext box, it looks very possible, [though it's close] that if there were no hard return involved, that content would fit in that width, and would not have word-wrapped to two lines.

Kent Cooper, AIA
0 Likes