Results 1 to 3 of 3

Thread: Fixing a block that uses same name attributes without losing existing block data during BATTMAN sync

  1. #1
    Active Member
    Join Date
    2008-05
    Location
    Boston
    Posts
    65
    Login to Give a bone
    0

    Default Fixing a block that uses same name attributes without losing existing block data during BATTMAN sync

    Here's a solution that may help someone:
    I was recently given a cad plan that had room tags in it comprised of three attributes:
    "room_name"
    "room_name"
    "room_no"
    Someone apparently had copied the room name attribute without renaming it in order to create a block with two lines for the room name.
    If I edited the block attribute names to "room_name1" and "room_name2", and then used BATTMAN to sync the revised block definition, every instance of the block in the drawing lost the values for those attributes and left only the room number portion of the block.

    How I fixed it:
    1. Selected all of the room tag blocks and used ATTOUT to create a txt file of the block attritbute values.
    2. Edited the block definition to change attribute names to "room_name1" and "room_name2".
    3. Used BATTMAN to update all of the inserted blocks to have the renamed attributes (which made the room name data disappear from each block instance).
    4. Opened the txt file and renamed the two "room_name" titles in it to "room_name1" and "room_name2" to match my revised block.
    5. Used ATTIN and this txt file to import the room name values to all of the existing blocks.

  2. #2
    Woo! Hoo! my 1st post
    Join Date
    2012-04
    Posts
    1
    Login to Give a bone
    0

    Default Re: Fixing a block that uses same name attributes without losing existing block data during BATTMAN sync

    Just helped me a /whole/ bunch.
    Except it was four "ROOMNAME"s, 1100 blocks, and between this and my lisp routine that replaced them all once I could isolate the text on each line, it worked. I probably wouldn't have found this solution on my own.
    Thanks!!!
    //Aaron.

  3. #3
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Fixing a block that uses same name attributes without losing existing block data during BATTMAN sync


Similar Threads

  1. Insert a new block using data from existing block
    By mike.43789 in forum AutoLISP
    Replies: 3
    Last Post: 2015-01-12, 11:50 PM
  2. Converting existing blocks with attributes to a new dynamic block
    By sovby254640 in forum Dynamic Blocks - Technical
    Replies: 2
    Last Post: 2012-06-04, 12:15 PM
  3. Add attributes to an existing block
    By dvannoy in forum AutoCAD General
    Replies: 2
    Last Post: 2007-10-17, 02:45 PM
  4. Automatic sync of block attributes
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2006-07-26, 08:30 PM
  5. Updating Existing Block Attributes
    By SteveBig in forum Dynamic Blocks - Technical
    Replies: 2
    Last Post: 2005-11-04, 01:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •