Rename blocks in script

Discussion in 'AutoCAD' started by Al Strominger, Jul 29, 2004.

  1. Does anybody have some code to rename blocks that I can use in a script. I
    can't just use the rename command because not all the blocks exist in all
    the drawings and the command will fail. I need to batch about 200 drawings.

    Thanks in advance

    Al
     
    Al Strominger, Jul 29, 2004
    #1
  2. Thanks Jim for sending me in the right direction.


    Al
     
    Al Strominger, Jul 29, 2004
    #2
  3. Al Strominger

    Paul Turvill Guest

    Wouldn't that be
    (if (tblsearch "block" oldblockname)
    .... ?

    Can't change it if it doesn't exist.
    ___
     
    Paul Turvill, Jul 29, 2004
    #3
  4. Al Strominger

    Jim Claypool Guest

    Yes! Boy it's been a long week! Thanks Paul.

     
    Jim Claypool, Jul 29, 2004
    #4
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.