Results 1 to 6 of 6

Thread: Attribute Tags

  1. #1
    100 Club RobertAitken's Avatar
    Join Date
    2000-10
    Location
    Sunny Scotland
    Posts
    148
    Login to Give a bone
    0

    Default Attribute Tags

    Hi All.

    I'm updated a couple of thousand drawings. I have my VBA mascros working great. They do exactly as they say on the tin so to speak.

    The only problem I'm having is this. The company that created the drawings used the same attribute definition in two places. I can extract the information but when I go to put it back the program looks at the tagnumber as inserts the text. The text it inserts is the first text is came across so I get the wrong information in one of the attributes.

    Does anyone (Ed) have any ideas how I can get the correct info in the titleblock?

    Many Thanks

    Robert

  2. #2
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Attribute Tags

    You are stuck unless you can be positive that the attribute order is always correct in those thousands of drawings.

    If you think that you can get away with that assumption (I wouldn't) your only choice is to check the index of the duplicated tagname.

    Personally, I would correct the duplicate tag issue while processing the thousands of drawings. Otherwise the duplicated tagnames will haunt these drawings.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  3. #3
    AUGI Addict
    Join Date
    2015-12
    Posts
    2,095
    Login to Give a bone
    0

    Default Re: Attribute Tags

    Quote Originally Posted by RobertB View Post
    You are stuck unless you can be positive that the attribute order is always correct in those thousands of drawings.

    If you think that you can get away with that assumption (I wouldn't) your only choice is to check the index of the duplicated tagname.

    Personally, I would correct the duplicate tag issue while processing the thousands of drawings. Otherwise the duplicated tagnames will haunt these drawings.
    You could also check the attributes' position relative to the block; assuming the two aren't overlapping they should have different coordinate values. But the option to fix the attributes would also be my first choice.

  4. #4
    100 Club RobertAitken's Avatar
    Join Date
    2000-10
    Location
    Sunny Scotland
    Posts
    148
    Login to Give a bone
    0

    Default Re: Attribute Tags

    Thanks Guys.

    I ended up changing the attributes on the new block and amending from there.

    Thanks Again.

    PS Robert, you still running ACADX or had that fell by the side?

  5. #5
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Attribute Tags

    Quote Originally Posted by robert.aitken.252441 View Post
    PS Robert, you still running ACADX or had that fell by the side?
    AcadX.com withered away due to the 3 of us getting too busy with our real jobs.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  6. #6
    All AUGI, all the time thomas.stright's Avatar
    Join Date
    2015-12
    Location
    Texas
    Posts
    564
    Login to Give a bone
    0

    Default Re: Attribute Tags

    Quote Originally Posted by RobertB View Post
    AcadX.com withered away due to the 3 of us getting too busy with our real jobs.

    It's a pain with little things get in the way.....

Similar Threads

  1. 2013: Xrefs and Attribute tags
    By gjh in forum AutoCAD LT - General
    Replies: 2
    Last Post: 2014-05-10, 09:49 PM
  2. Renaming Attribute Tags?
    By rkingery in forum AutoLISP
    Replies: 25
    Last Post: 2013-01-09, 01:19 PM
  3. Re-use attribute tags
    By nancy.beulens in forum AutoCAD General
    Replies: 8
    Last Post: 2009-12-29, 03:23 PM
  4. If statement w/ attribute tags.
    By M. Kubitza in forum AutoLISP
    Replies: 2
    Last Post: 2009-11-17, 05:11 AM
  5. Accessing Attribute tags in a Block
    By moj.122448 in forum VBA/COM Interop
    Replies: 11
    Last Post: 2006-10-12, 03:30 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
  •