Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Formula in Expression wont update - except if I trigger "update for external change"

Status
Not open for further replies.

lklo

Industrial
Nov 24, 2010
226
Hello

If someone here can help me -

I need to have this expression updated - every time the setup part get new name ( save as , clone , rename , template, and so on...)

TYPE:Integer
NAME:WhatEver
FORMULA:mad:{
$path << first(flatten(ug_askAssemblyStructure( "" )));
ug_setAttrValue_("", "PART_ATTRIBUTE", "filepath", $path);
}; AssemblyStructure( "" )));

This expression set a Part attribute named "filepath" with the value of the entire file path. That is very OK.
But it is annoying that is nessesary to run "update for external change" every time to get it updated.

lklo



 
Replies continue below

Recommended for you

Many Knowledge Fusion (KF) routines (such as 'ug_setAttrValue'), when their value has been edited, do not automatically set an 'update' flag and therefore the user must perform a 'manual update' to see the changes. The most effective method for doing that is to use the 'Update for External Change' function.

Note that starting with NX 8.0, at least with respect to an Expression referencing an Attribute, we no longer have to depend on using KF routines but rather the user now has a direct Attribute function in the Expression tool which will update like any other Expression edit.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor