Community
Dynamic Blocks Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynamic Block, Field "value" not updating Attribute "value"

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
jhebert
6626 Views, 9 Replies

Dynamic Block, Field "value" not updating Attribute "value"

I have created a rectangle whose length changes.

 

The value of the paameter "Dist1" is this length field that I associate to the attribute value. Basically, echo length from Dist1 into the attrib value.

 

The problem is when I insert the block into the drawing the value is shown as "DIST1", even after regen. 

 

Once I pull the grip point to a new length and regen it still shows "DIST1".

 

If I go into the ddedit and select the edit box (for multiline data field) the shown value will correct itself, but only one time.

If I change the length again, the dimension does not update. 

 

It worked fine when I tested the block but is having issues days later.

Any suggestions?  thx .j.

9 REPLIES 9
Message 2 of 10
Bob_Zurunkle
in reply to: jhebert

Is FIELDEVAL set to 31?

If by some odd chance my nattering was useful -- that's great, glad to help. But if it actually solved your issue, then please mark my solution as accepted 🙂
Message 3 of 10
jhebert
in reply to: jhebert

No sir it was set to zero, let me check this now.

...And there it works now....Thank you very much, kind sir.

thx again for the help.  Would you know where I could find that information, I searched all morning for it on the web but was unable to ferret it out.  Thank you very much.  .j.

Message 4 of 10
rbh1
in reply to: jhebert

I found this in the AutoCad Command Reference

 

To update fields automatically

  1. At the Command prompt, enter fieldeval.
  2. Enter a bitcode that is the sum of any of the following values:
    • 0: Not updated
    • 1: Updated on open
    • 2:Updated on save
    • 4:Updated on plot
    • 8:Updated on use of ETRANSMIT
    • 16: Updated on regeneration

    For example, to update fields only when the file is opened, saved, or plotted, enter 7.

     

    Type:Integer
    Saved in:Drawing
    Initial value:31

    Controls how fields are updated.

    The setting is stored as a bitcode using the sum of the following values:

     

    0

    Not updated

    1

    Updated on open

    2

    Updated on save

    4

    Updated on plot

    8

    Updated on use of ETRANSMIT

    16

    Updated on regeneration

    NoteThe Date field is updated by UPDATEFIELD, but it is not updated automatically based on the setting of the FIELDEVAL system variable.


    I hope this helps

Message 5 of 10
Charles_Shade
in reply to: rbh1

The summing of the Codes listed in Help is also true of OSMODE and SORTENTS

 

Any others?

Message 6 of 10

tHIS IS NOT A SOLUTION

Message 7 of 10
timothy_crouse
in reply to: jhebert

Can you post the block?

 

-Tim C.

Message 8 of 10
jsmithAP3Q4
in reply to: jhebert

I believe I'm having the same problem, but the FIELDEVAL fix isn't working for me. Sample file attached.

Message 9 of 10
pendean
in reply to: jsmithAP3Q4


@jsmithAP3Q4 wrote:

I believe I'm having the same problem, but the FIELDEVAL fix isn't working for me. Sample file attached.


Thanks for sharing your file: please explain where/what each field's OBJECT is getting its data

pendean_0-1677187245451.png

 

Some of these appear to get info from somewhere, but where

pendean_1-1677187340528.png

 

Message 10 of 10
jsmithAP3Q4
in reply to: pendean


@pendean wrote:

@jsmithAP3Q4 wrote:

I believe I'm having the same problem, but the FIELDEVAL fix isn't working for me. Sample file attached.


Some of these appear to get info from somewhere, but where

 


 

The column on the left contains the attribute definitions so the values may be updated after the block is inserted. The column on the right contains an mtext with a field entry that is linked to the value of the corresponding attribute definition (i.e. the field in the right column row 1 references the attribute definition for the left column row 1; rinse and repeat all the way up).

 

Some values that are being shown are the default values for some attributes, but if I change an attribute value after the block is inserted, no combination of fieldeval/regen/plot/etransmit gets the mtext field to update.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services