Author Topic: LISP ROUTINE (OR AUTOCAD FUNCTION)  (Read 1177 times)

0 Members and 1 Guest are viewing this topic.

gisdude

  • Newt
  • Posts: 23
LISP ROUTINE (OR AUTOCAD FUNCTION)
« on: February 25, 2020, 06:12:45 PM »
Hi all,
I feel like I go here more than I should...but I digress.

I have a .dwg that has MANY lines of text, mtext, blocks, etc. In all of this organized chaos are wire tags that are labeled with the format-  (XXXX). The problem is that we have hundreds of wires with hundreds of different wire tags. Our company standards don't have wire standards that allow this and we'd like to remove ANY TEXT that contains parentheses AND the characters inside the parentheses.

I've got some of the job done, but this is beginning to be more tricky. Lee-Mac has a wonderful LISP routine that does a lot of what I need, but a routine that will strip the format I just showed is still lacking.

example:

TBI-1 (1322) 43SL:21
TBI-2 (1049) 52CSR:TB3
TBI-2 (654) 43MA:20
etc.,
Like I said, I've done what I could do with some routines I've collected on the various forums, but this last part is the most daunting.

Thanks for any help,

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: LISP ROUTINE (OR AUTOCAD FUNCTION)
« Reply #1 on: February 25, 2020, 06:44:07 PM »