×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Script to remove part of a text block?

Script to remove part of a text block?

Script to remove part of a text block?

(OP)
My company is doing a lot of updating right now, and there is some information on all of our (50,000+) prints that needs to be removed. While I can do some really nifty things w/our other cad program, I'm pretty clueless when it comes to doing the more detailed stuff w/AutoCAD. I've linked 2 examples below- is there a way to script removing the last 2 items (routing and send to) in the blocks on the bottom left corner?  We have prints set up both of the ways shown.

http://www.unforgottenpath.org/aza/MM241416.WLT.dwg

http://www.unforgottenpath.org/aza/MM762422.UBT.dwg

RE: Script to remove part of a text block?

Yes, with some custom programming.

In one drawing, the "SHIP TO: WELDING" is a attribute value in a block insert; in the other drawing "SEND TO: SHIPPING" is the last line in some MTEXT.  A (lisp or VBA) routine would search for the mtext & delete the offending text, and search for the block insert "routing" and clear the attribute value. Now include this routine in a batch program such as Scriptpro to run on all the drawings.

RE: Script to remove part of a text block?

(OP)
Thank you for the reply- I knew it *should* be relatively simple, but since I don't work with AutoCAD in depth, I wasn't sure where to start. Time to get started on implementation!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources