Jump to content

Recommended Posts

Posted

Just trying to get my field formula based on attribute definition to work. It does not update. My steps below:

 

  1. New drawing.
  2. I create attdef (default value: 1000)
  3. I create a text.
  4. I add field (ctrl F) in that text.
  5. In the field dialog box, Objects>Formula
  6. Right click in formula, insert field (a nested field).
  7. Object>Select the attribute definition. 
  8. In the formula box, I add "/100". 1000 divide by 100 equals 10. 10 is what I want based on default 1000 value.Screenshot2025-06-13091211.thumb.png.b19f17df2506decd3ecf93c9945b30e4.png
  9. Save dwg.
  10. New dwg, insert block, select that dwg.
  11. But when I change the attdef value. It does not refresh. Eg. Attribute change to 200, the field should change to 2.

 

Help please. Thanks.

Posted

Fields don't update instantly. Try a REGENALL or switch to another layout and back.

Posted

Can you post a dwg with block, then can look at Field formula.

 

Is the attdef in a block or just a attdef ?

 

Posted (edited)

Insert the attached test block into drawing. Default value of block attribute is 1000. If you change that block attribute, the changed attribute values doesn't seem to get passed through. It still stuck on default value. I tried regen, switching from model, to paper and then back to model space. It doesn't work.

testblock.dwgFetching info...

Edited by wing
Posted

You are correct for every attribute it has only one single ID, so when you insert the block again you get ID 2.

 

One way around it is to use a lisp to insert the block and add the correct ID to the text. Now where did I put it.

Posted

The dwg provided only has an attribute rather than a block with an attribute, I just like to work that way so will show a solution for an existing block with attributes, pick the attribute and then the text and it will show the result. Maybe later today.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...