Find & Replace... not for multiline text?

Find & Replace... not for multiline text?

sgooss
Contributor Contributor
2,323 Views
13 Replies
Message 1 of 14

Find & Replace... not for multiline text?

sgooss
Contributor
Contributor

If I command Find : "DH3056," I cannot replace with :

DH3056
36"x66"

as Find allows only one line.  Is my only option to add the inches on the same line as the DH3056 and then adjust the text widths to force it to a 2nd line?  I also need to do selective search by area on plans since similar text for elevations need to not show the inches.

0 Likes
Accepted solutions (1)
2,324 Views
13 Replies
Replies (13)
Message 2 of 14

vladimir_michl
Advisor
Advisor
Accepted solution

You cannot use the "\P" new line (new paragraph) code in the Replace part of the Find/Replace command. The only workaround in AutoCAD LT is to use the Unicode "new line" code:  \U+000A

 

Vladimir Michl, www.arkance-systems.cz  -  www.cadforum.cz

 

 

Message 3 of 14

sgooss
Contributor
Contributor

Thank you for the response.  Would I enter that in the Replace line in the dialogue box before my own text or is what you wrote to be used in a different way?  Also, is there a way to Find and Replace text as I want to in the full version of AutoCAD?

 

0 Likes
Message 4 of 14

cadffm
Consultant
Consultant

Is testing not much faster than asking?

findAreplace.JPG

Sebastian

0 Likes
Message 5 of 14

cadffm
Consultant
Consultant

>>" Also, is there a way to Find and Replace text as I want to in the full version of AutoCAD?"

 

FIND &replace is the same in both versions, similar to 99% stuff in AutoCAD and LT,

except the 3D modelling and API (programming possibility).

 

AutoCAD often the same as LT, but you have a chance to find a tool which can do what you want.

Sebastian

Message 6 of 14

sgooss
Contributor
Contributor

In time, of course I would test.  Also, there are several things in Autocad regarding "lisp" code that I don't know so I was double-checking.  My 2nd question regards if the Find & Replace works for multiline text in the full version of CAD, because I've been pushing my company to purchase a full version.

0 Likes
Message 7 of 14

sgooss
Contributor
Contributor

Right except for the great Express Tools that I DO miss...  I don't remember having so many texts issues in CAD as I am finding here using LT.  

 

Thanks for the reply.

0 Likes
Message 8 of 14

pendean
Community Legend
Community Legend
>>>... I don't remember having so many texts issues in CAD as I am finding here using LT...<<<
Most likely you relied heavily on add-ons and now in LT you are limited to use the core commands only: what you are asking for here has never changed in LT or full AutoCAD core commands in dozens of previous versions now.

HTH
Message 9 of 14

sgooss
Contributor
Contributor

Hello, Vladmir.

The  \U+000A   has been helping greatly to add a 2nd line to existing text but I'm wondering why it doesn't work in the Find portion.  I have :

"Optional
Attic Access" and need to change it to :
"Standard
Attic Access" in several places and cannot just replace Optional with Standard since I use "optional" throughout the drawing in many areas.

I will do a search for such code in the Find line but hope that you may know.

Thanks again.
Sandra.

0 Likes
Message 10 of 14

cadffm
Consultant
Consultant

@sgooss  schrieb:

 but I'm wondering why it doesn't work in the Find portion.


Because it is stored as formatting code, find will ignore that like a human ignores it to 😉

 

For you, seach for "Optional?Attic Access"

 

Sebastian

0 Likes
Message 11 of 14

cadffm
Consultant
Consultant

or to make more save

[~a-z,A-Z,0-9]

 

"Optional[~a-z,A-Z,0-9]Attic Access"

Sebastian

0 Likes
Message 12 of 14

sgooss
Contributor
Contributor

 

 

Many things in Autocad are Greek to me even after using the program for twenty years.  I do type all of my commands but typing the system code is new to me other than using things like U%% for underline or whatnot from the older days.

Thanks - I will give a try on what you wrote.

0 Likes
Message 13 of 14

vladimir_michl
Advisor
Advisor

This will find only the texts with this "workaround line-feed" code, not the standard line-feeds. You can try the "non-character" search codes as proposed above.

 

Vladimir Michl, www.arkance-systems.cz - www.cadforum.cz

 

0 Likes
Message 14 of 14

sgooss
Contributor
Contributor

I just realized that this 2nd line code work-around is similar to making the 2nd line in a dimension text with \X.
May I ask what do I type to find exactly only one word or one specific condition?  The checkbox selections in the dialogue box don't seem to be very precise.  When I search for "Crawlspace" and replace with "Access Crawlspace," it finds all words Crawlspace already corrected and will result in "Access Crawlspace Crawlspace."

0 Likes