Results 1 to 1 of 1

Thread: Change Multiple Blocks' Attributes, Some with same name. Same drawing.

  1. #1
    Member
    Join Date
    2013-02
    Posts
    6
    Login to Give a bone
    0

    Default Change Multiple Blocks' Attributes, Some with same name. Same drawing.

    A workmate of mine got some some code from here and we are trying to learn(understand) whats going on with it. We wanted to automatically fill a block's attributes from a selection in Excel. I have a piece of code that has the user select/pick a block to fill. What I want is for the selection to fill multiple blocks in an active drawing. Some of the blocks are the same - which means the same tags/attributes. I've included the code that allows the user to select the block and throws the Excel selection to certain attributes. Can someone help me change the code so that 1) I don't have to manually select blocks - it will find them. 2) One cell (from Excel) will go to multiple blocks - some are same block name. 3) An IF statement that if a certain cell isn't blank/nil (pretend it would be (nth 21 vl) change DESC11 to XYZ and DESC12 to ABC. For Block namesake we'll call one, BLOCK1 (say it has 3 instances and gets different info in each case) BLOCK2 (say it has 2 instances, also gets different info) BLOCK 1 AND 2 HAVE SAME ATTR. - TAG1, BLOCK 3 AND 4 both have an attribute - DESCAA1 that gets different info from Excel. Again, I claim no ownership of this code as it was gotten from this forum I believe. Thanks for any help.
    Attached Files Attached Files

Similar Threads

  1. Replies: 0
    Last Post: 2011-11-15, 01:35 PM
  2. Replies: 0
    Last Post: 2008-02-07, 05:29 PM
  3. Replies: 1
    Last Post: 2008-02-07, 05:21 PM
  4. Deploying attributes to multiple blocks
    By slayer913 in forum AutoCAD General
    Replies: 7
    Last Post: 2006-12-18, 12:23 PM
  5. Edit Multiple Blocks without losing attributes?
    By tburke in forum AutoCAD General
    Replies: 5
    Last Post: 2006-08-15, 05:34 AM

Posting Permissions

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