Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field with DIESEL expression does not update

Status
Not open for further replies.

Jacc

Automotive
Oct 22, 2002
140
Basically I want a mtext field that is linked to a attribute in an object.
Easy enough, you just take Edit Field -> Objects -> Object and select the object and the attribute you want.
The field formula looked something like this: %<\AcObjProp Object(%<\_ObjId 2130252728>%).TextString>%

Then I realized I only want part of that attribute so I used a DIESEL expression looking like this: $(substr,Hi,2) and replaced the word "Hi" with the field code. The result looked like this: $(substr,%<\AcObjProp Object(%<\_ObjId 2130252728>%).TextString>%,4)

Problem is now the field doesn't update when typing REGEN and it doesn't update when typing UPDATEFIELD. Tried with booth FIELDEVAL=16 and FIELDEVAL=31.
If I doubleklick it, right click and choose Update Field it will update but if you have a large number of fields it's no fun to use three clicks on each to update them. The whole idea with fields is kind of lost...
Any ideas about this?
 
Replies continue below

Recommended for you

Do the fields update when you close and open the drawing?
 
Do fields with only diesel expressions update?
 
IFRs: No, it doesn't update the fields with DIESEL expressions when I close and open. I think your question is related to the system variable FIELDEVAL. Look up FIELDEVAL in the manual and you see what I mean.

CarlB: I assume that you mean "fields without diesel expressions". The answer is yes, fields without DIESEL expressions update on REGEN and when saving etc. (according to the FIELDEVAL variable I assume).

 
Actually I said(typed) WITH ONLY diesel expressions, my point being maybe diesel expressions don't update according to Fieldeval.
 
Sorry for my ignorant assumption CarlB. I haven't tried with only diesel expressions. Good point, when do diesel expressions update? Sorry about the late reply, I whish to keep the discussion going.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor