Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Field within block not updating

  1. #1
    Member
    Join Date
    2003-12
    Posts
    14
    Login to Give a bone
    0

    Default Field within block not updating

    I've spent too much time trying to make this work. I need your help please.
    I have a block with two fields assigned to pick up the value of an attribute within that same block. I change the value of the attribute. . . regen. . . .attsync. . . regenall. . . but my field value never changes from "----". I hope someone out there can tell me what I'm doing wrong.

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Field within block not updating

    Can you post the block?
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  3. #3
    Member
    Join Date
    2003-12
    Posts
    14
    Login to Give a bone
    0

    Default Re: Field within block not updating

    I'm having trouble posting block. Adding attachment gives me an error.

  4. #4
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Field within block not updating

    Quote Originally Posted by montero1 View Post
    I'm having trouble posting block. Adding attachment gives me an error.
    That may be due to your being relatively new here; see if this helps?

    http://forums.augi.com/showthread.ph...-in-the-forums
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  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: Field within block not updating

    Off the top of my head, that sounds impossible. In block editor, your fields would only point to an ATTDEF entity. One placed, they would need to point to an ATTRIB entity.

  6. #6
    I could stop if I wanted to
    Join Date
    2007-06
    Location
    Flagstaff, AZ
    Posts
    264
    Login to Give a bone
    0

    Default Re: Field within block not updating

    It is certainly possible. I have done so on many blocks. There are a few ways and a couple gotchas. If one attribute within a block is using an object field that is linked to the value of another attribute within the block you must make sure that 'Display value for block reference' in the bottom right is checked in the field window. A similar method that works is to define a user parameter, change Type to String and then within your attribute(s) use a BlockPlaceholder field that references the user variable. In either case, you need to 'jumpstart' the fields by adding either a dynamic action or by editing a user parameter. This will give the block occurrence a unique name and the fields will update with a regen. In the attached file I show both examples. The top one (AttEx2) uses a user parameter called 'ATT'. On insertion, change the value of ATT in properties and a regen will update the fields. The bottom one references the CENTER attribute. In it I added a Lookup at the top center. On insertion, you can click the grip and select 'JumpStart' (even though it is already selected) and then a regen will update the field values.

  7. #7
    Member
    Join Date
    2003-12
    Posts
    14
    Login to Give a bone
    0

    Default Re: Field within block not updating

    Blackbox: Thanks for that link. That helped my attachment problem.
    Attached is the block I created. I want to enter a relay number and have the fields populate with that same number.
    Attached Files Attached Files

  8. #8
    I could stop if I wanted to
    Join Date
    2007-06
    Location
    Flagstaff, AZ
    Posts
    264
    Login to Give a bone
    0

    Default Re: Field within block not updating

    Here's your block back with the fields working. On a new insertion, you will need to select the block, select the move grip and then select a point to move it to (it can be the point where it currently is) to jumpstart the fields. Regen will then update with a relay number change.

  9. #9
    I could stop if I wanted to
    Join Date
    2007-06
    Location
    Flagstaff, AZ
    Posts
    264
    Login to Give a bone
    0

    Default Re: Field within block not updating

    I would add that if you make a tool palette tool from the block, the tool will insert the block already 'jumpstarted'.

  10. #10
    Member
    Join Date
    2003-12
    Posts
    14
    Login to Give a bone
    0

    Default Re: Field within block not updating

    I see what you did, but I don't want those fields to be an attribute definition. I would like it to be just plain text. I will have up to 20 instances of that relay number, and I would rather not see the 19 other "TAGs" and "PROMPTs" in the block attribute editor dialog box. I hope that makes sense.

Page 1 of 2 12 LastLast

Similar Threads

  1. 2015: Field in an Attribute not updating
    By derek.96018 in forum AutoCAD Customization
    Replies: 5
    Last Post: 2015-09-09, 05:06 PM
  2. DeviceName field is not updating in a block
    By jkad27 in forum AutoCAD Fields
    Replies: 2
    Last Post: 2012-02-28, 08:36 AM
  3. Trouble updating date field
    By cdoucet in forum CAD Management - General
    Replies: 12
    Last Post: 2008-01-16, 04:53 PM
  4. Field in Title Block not updating
    By Grumpy in forum AutoCAD Fields
    Replies: 2
    Last Post: 2005-02-22, 10:13 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
  •