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

    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

    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 irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,348

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

    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

Similar Threads

  1. importing data into block attributes
    By tparvind in forum AutoCAD Customization
    Replies: 4
    Last Post: 2011-06-27, 09:46 PM
  2. Extract data from Dynamic block with attributes
    By mahesh.darekar in forum AutoLISP
    Replies: 4
    Last Post: 2009-01-24, 03:56 AM
  3. Add attributes to an existing block
    By dvannoy in forum AutoCAD General
    Replies: 2
    Last Post: 2007-10-17, 02:45 PM
  4. Updating Existing Block Attributes
    By SteveBig in forum Dynamic Blocks - Technical
    Replies: 2
    Last Post: 2005-11-04, 12: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
  •