Results 1 to 9 of 9

Thread: Re-use attribute tags

  1. #1
    Member
    Join Date
    2007-11
    Posts
    3
    Login to Give a bone
    0

    Default Re-use attribute tags

    I tried to reuse tags of attributes.
    In example I attached a bitmap.

    I tried several methods: fields, same attributetags... but it doesn't work. Somebody has an answer. I would be gratefull..

    Kind regards and thanks

    Nancy
    Attached Images Attached Images

  2. #2
    Member
    Join Date
    2007-05
    Posts
    23
    Login to Give a bone
    0

    Smile Re: Re-use attribute tags

    When creating the Block.

    Avoid selecting all the attributes using a window function.
    When Creating the block make sure u select attributes in such way that
    the attributes u need first select them first

    Hope this works...........

  3. #3
    All AUGI, all the time Mlabell's Avatar
    Join Date
    2004-12
    Location
    Toledo, OH
    Posts
    513
    Login to Give a bone
    0

    Default Re: Re-use attribute tags

    Quote Originally Posted by balubharadwaj View Post
    When creating the Block.

    Avoid selecting all the attributes using a window function.
    When Creating the block make sure u select attributes in such way that
    the attributes u need first select them first

    Hope this works...........
    Not completely true. If you do get carried away and select them all at once you can edit the block and key in "battorder" to reorganize the order of the attributes.

    Nancy welcome to AUGI! Hopefully you find this place as an invaluable resource of information.

    And to answer the origrinal question you cannot reuse the tags of an attribute, and expect it to work correctly, especially with fields. They tend to get a little cooky when this is done. Could you possibly explain further why you would want to reuse a Tag, and maybe post a drawing, or a little better resolution bitmap. The one here was very hard to read.

    Also could we get a moderator to move this to the correct forum?

  4. #4
    Member
    Join Date
    2007-11
    Posts
    3
    Login to Give a bone
    0

    Default Re: Re-use attribute tags

    Thanks a lot for answering.
    I describe shortly the problem:

    -> First solution with same tagname:
    In one block there some attributes (or fields) I need to reuse.
    In de earlier versions of Autocad, the user could define an attribute with the same name. When I defined two attributes with same tagname, Autocad 2008 shows the double definition in red color.
    ->Secondly I tried to insert de fieldname in the attribute.
    But I did not succeed to update de field.

    Kind regards.

    Nancy

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

    Default Re: Re-use attribute tags

    You're correct about the tag names not allowed to be the same any more. It's due to what's known as data-tuple-uniqueness - a database basic requirement. If this wasn't the case then data extraction couldn't work at all.

    If what you're after is having the actual value of an attribute copied into another attribute, then you'll have to make the 2nd ATTRIB with a unique tag name. Then use fields (outside of block editor) to link to the 1st attribute. See the attached screenshots. You'll have to do this for each duplicate attribute in each instance of the block - very time consuming. Unfortunately there's no way of getting the link to attributes from within the block editor (as you can with other properties) by using the Block Place Holder object. The only thing I can think of to get this done automatically is to write a custom LISP routine.

    If you're creating these blocks for the 1st time, then do the links for the very 1st block. Then use COPY instead of INSERT for the others. The fieldcodes will then automatically update to each new block - linking the 2nd ATTR to the 1st inside aech new instance of the block.
    Attached Images Attached Images

  6. #6
    Member
    Join Date
    2007-11
    Posts
    3
    Login to Give a bone
    0

    Default Re: Re-use attribute tags

    Hello,
    Thank you very much. I see it's not working. I shall write a VBA-routine.

    Kind Regards.

  7. #7
    Woo! Hoo! my 1st post
    Join Date
    2009-12
    Posts
    1
    Login to Give a bone
    0

    Default Re: Re-use attribute tags

    Quote Originally Posted by irneb View Post
    You're correct about the tag names not allowed to be the same any more. It's due to what's known as data-tuple-uniqueness - a database basic requirement. If this wasn't the case then data extraction couldn't work at all.

    If what you're after is having the actual value of an attribute copied into another attribute, then you'll have to make the 2nd ATTRIB with a unique tag name. Then use fields (outside of block editor) to link to the 1st attribute. See the attached screenshots. You'll have to do this for each duplicate attribute in each instance of the block - very time consuming. Unfortunately there's no way of getting the link to attributes from within the block editor (as you can with other properties) by using the Block Place Holder object. The only thing I can think of to get this done automatically is to write a custom LISP routine.

    If you're creating these blocks for the 1st time, then do the links for the very 1st block. Then use COPY instead of INSERT for the others. The fieldcodes will then automatically update to each new block - linking the 2nd ATTR to the 1st inside aech new instance of the block.
    how do you get to the enhance attribute editor???? am using AutoCAT LT 20008

  8. #8
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Re-use attribute tags

    EATTEDIT - but it may not be included in LT.

  9. #9
    Active Member
    Join Date
    2008-12
    Posts
    93
    Login to Give a bone
    0

    Default Re: Re-use attribute tags

    Quote Originally Posted by jontylee87 View Post
    how do you get to the enhance attribute editor???? am using AutoCAT LT 20008
    Double-left click the block. If want to edit a specific attribute first, double-left click on that attribute. I don't know if this works for AutoCAT LT 2008, but it has worked for all full versions of AC that I have worked with.

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. Attribute Tags
    By RobertAitken in forum VBA/COM Interop
    Replies: 5
    Last Post: 2010-06-11, 11:01 AM
  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
  •