Results 1 to 6 of 6

Thread: Fields and Attributes

  1. #1
    Member
    Join Date
    2006-09
    Posts
    21
    Login to Give a bone
    0

    Default Fields and Attributes

    I have a block that has two attributes and two pieces of text. I would like the text on the left of the block to change with the attributes on the left. I'm not sure if it can be done with fields, diesel or something else. Any help is appreciated. Attached is the block.

    Thanks!
    Attached Files Attached Files

  2. #2
    All AUGI, all the time
    Join Date
    2009-01
    Location
    B5
    Posts
    544
    Login to Give a bone
    0

    Default Re: Fields and Attributes

    Interesting. I can assign the Field to the Object: Attribute and have the Field return all kinds of information available in the Field Manager for said Object except the Value. Really the only relevant piece of information there is in the Attribute.
    Not sure why anyone would want to return the Obliquing or Text Alignment object Property but they sure do show up pretty.
    Attached Files Attached Files

  3. #3
    All AUGI, all the time
    Join Date
    2009-01
    Location
    B5
    Posts
    544
    Login to Give a bone
    0

    Default Re: Fields and Attributes

    This is the one I wanted to get back to.

    When you create the Attribs for the first bubble leave the Default blank.
    Now create the Attribs for the second bubble using the Field; Objects; Object (Select your Attrib); Value
    REGEN to update the Fields

  4. #4
    Member
    Join Date
    2015-08
    Posts
    7
    Login to Give a bone
    0

    Default Re: Fields and Attributes

    Thanks, clshade - I always find your posts informative. Can you provide a file with your technique working?

    When I try it in LT 2011, it works in the following way:

    In the block editor, define attribute ORIG, default value blank.
    Define attribute DUP, value = [Field, Object (select ORIG), Value]
    Save block TEST.

    Insert block TEST, provide text value "XXXX" for attribute ORIG, accept default [ ="----" ! ] for DUP.
    Inserted block now reads "XXXX" and "----".
    Enter REGEN. No change.
    Edit attribute "----", select field, right-click, Update Field, no change.

    Now, edit attribute "----", select field, delete. Right-click, Insert Field, Object (select block TEST, Property ORIG), OK. Inserted field now has value "XXXX".

    Change value of ORIG to "YYYY", OK.
    Enter REGEN, DUP now updates from "XXXX" to "YYYY".

    Conclusion: a field inserted while in the block editor will not update. A field inserted after the block has been placed in the drawing will update.

    P.S. The attached file (LT 2007 format) has the original and modified blocks described above.
    Attached Files Attached Files

  5. #5
    Certified AUGI Addict cadtag's Avatar
    Join Date
    2000-12
    Location
    Cairo - no, not Illinois
    Posts
    5,069
    Login to Give a bone
    0

    Default Re: Fields and Attributes

    Actually, that makes perfect sense. It's _not_ an attribute in the block editor, it's an ATTDEF entity, an attribute definition. The ATTDEF is replaced by an ATTRIB entity when the block instance is created in the drawing. So not only is the object itself different, the object type is different.

  6. #6
    All AUGI, all the time
    Join Date
    2009-01
    Location
    B5
    Posts
    544
    Login to Give a bone
    0

    Default Re: Fields and Attributes

    THis should be the one that I use.
    Attached Files Attached Files

Similar Threads

  1. Is it possible for fields to add together the value of 2 attributes?
    By fangus434326 in forum Dynamic Blocks - Technical
    Replies: 4
    Last Post: 2013-10-31, 02:31 PM
  2. Fields and Attributes
    By Al Moroz in forum AutoCAD Fields
    Replies: 1
    Last Post: 2011-03-01, 01:19 PM
  3. Fill in attributes with fields from SSM
    By GreyHippo in forum AutoLISP
    Replies: 5
    Last Post: 2009-04-29, 04:56 AM
  4. attributes vs fields
    By woknwolr in forum ACA General
    Replies: 3
    Last Post: 2007-01-31, 01:56 PM
  5. Fields to attributes
    By charlie.bauer341340 in forum AutoCAD Fields
    Replies: 7
    Last Post: 2005-07-22, 09:22 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
  •