Block Replacement Routine

Discussion in 'AutoCAD' started by Steve Wojtynek, Jul 24, 2003.

  1. When I created all the drawing tag blocks for this firm, I sometimes added
    wipeouts under the attributes in an effort to always have the text show up
    in a plot when sloppy drafters placed tags over hatch patterns, lines,
    etc... I've got a group here that wants the option of taking the wipeouts
    out of the tags, but they've already got lots of tags with wipeouts in lots
    of drawings. The only way I think I can do this is to create equivalent
    "non-wipeout tags" for all the "wipeout-tags", and to make sure that all the
    attribute tag names are the same so the new blocks will pick up all the
    attribute values already in the drawing.

    I tried writing a simple command line script to do this...

    First, it zooms way out,
    then it inserts one of the new "non-wipeout tags" at 0,0 (which must be in
    view for the last step),
    then it uses the -BLOCKREPLACE cammand to replace a "non-wipeout tag" with
    "wipeout-tag",
    then it erases the last entry of the block.

    It works, but the script is getting real long because there are about a
    dozen blocks to replace...

    Any routines out there that replaces blocks - working off of a list of "bad"
    and "good" blocknames?
     
    Steve Wojtynek, Jul 24, 2003
    #1
  2. Never mind... I figured it out.
     
    Steve Wojtynek, Jul 24, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.