Results 1 to 4 of 4

Thread: BAttMan functionality through VBA?

  1. #1
    Member
    Join Date
    2008-02
    Posts
    3
    Login to Give a bone
    0

    Default BAttMan functionality through VBA?

    Hi,
    Hope someone can help, this has me scratching my head...
    Is there a way of accessing the battman commands functionality through VBA?

    I've got a hundred or so drawings where I need to modify block attribute tag strings (i.e. change the name of the attribute) for all blocks in a drawing.
    I've written a vba routine which will change the tags in all block references, which seems pretty straightforward, but I need to change the tag strings in the block definitions otherwise they could be changed back if blocks are sync'ed at any point.

    I've used the GetAttributes method for BlockRef objects, but can't see how to do this for Block objects and the Blocks collection.

    Can anyone help?
    Thanks
    Simon

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: BAttMan functionality through VBA?

    Once you get the block definition (AcadBlock), iterate the Block collection using IF...TypeOf, checking for att defs.
    C:> ED WORKING....


    LinkedIn

  3. #3
    Member
    Join Date
    2008-02
    Posts
    3
    Login to Give a bone
    0

    Default Re: BAttMan functionality through VBA?

    Finally got that working...
    Thanks for the pointer, Ed - much appreciated!
    Simon

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: BAttMan functionality through VBA?

    You're welcome.
    C:> ED WORKING....


    LinkedIn

Similar Threads

  1. GD21-2: All About Attributes (From the Creator of BATTMAN)
    By Autodesk University in forum General Design
    Replies: 0
    Last Post: 2013-04-08, 07:39 PM
  2. GD32-2: All About Attributes (from the Creator of BATTMAN)
    By Autodesk University in forum General Design
    Replies: 0
    Last Post: 2013-03-30, 02:08 AM
  3. Battman command
    By lee.johnson in forum AutoLISP
    Replies: 1
    Last Post: 2011-09-30, 04:30 PM
  4. BATTMAN AND ATTSYNC
    By JaredRegister in forum AutoCAD General
    Replies: 4
    Last Post: 2008-10-15, 02:49 PM
  5. Battman mirror my attribute
    By eddyhgng in forum AutoCAD General
    Replies: 4
    Last Post: 2007-11-12, 05:03 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
  •