Author Topic: Simple Text Search and Replace  (Read 489 times)

0 Members and 1 Guest are viewing this topic.

THEBIGDIEHL

  • Mosquito
  • Posts: 1
Simple Text Search and Replace
« on: November 09, 2022, 11:06:03 AM »
I am asking for help for this simple task. I used to write some Lisp but I have lost my books when we moved a year ago. I know this is simple but we obtain some Property Owner information that has extra labeling that does not need to end up on our drawing. Yes, we can use a simple search and replace but sometimes have a hundred of these on a single map. In addition, the CITY STATE ZIP comes to us in 3 separate lines. It would be nice if the routine could condense these into one line. Example

ORIG DATA:

Parcel Number: 05-55-08-36-0-000-026.007
PIN: 203777
Owner Name: BOWLING, ARTHUR ETAL BOWLING, SARA G
Address: 256714 WILBER AVE
City: LONDON
State: AL
Zip: 36824

NEEDED FORMAT:

05-55-08-36-0-000-026.007
PIN: 203777
BOWLING, ARTHUR ETAL BOWLING, SARA G
256714 WILBER AVE
LONDON AL 36824

Again, I know this is probably simple but I appreciate any help you could give.  Thanks!

Crank

  • Swamp Rat
  • Posts: 1492
Re: Simple Text Search and Replace
« Reply #1 on: November 09, 2022, 02:35:34 PM »
Have you tried the FIND command?
Vault Professional 2022     +     AEC Collection

DEVITG

  • Bull Frog
  • Posts: 475
Re: Simple Text Search and Replace
« Reply #2 on: November 09, 2022, 04:06:02 PM »
@THEBIGDIEHL  please upload your sample.dwg 
Location @ Córdoba Argentina Using ACAD 2019  at Window 10

BIGAL

  • Swamp Rat
  • Posts: 1097
  • 40 + years of using Autocad
Re: Simple Text Search and Replace
« Reply #3 on: November 09, 2022, 06:40:34 PM »
Ok get all text using ssget then look at the text does it WCMATCH "Parcel" if so save it to a list plus next 6 text objects, this does of course rely on the databse order, then you have a list of text so redo it all removing words not required, strcat the London AL 1234 and make a new Mtext.

Like Devitg need a dwg to check.
A man who never made a mistake never made anything