Formula in Expression wont update - except if I trigger "update for external change"
Formula in Expression wont update - except if I trigger "update for external change"
(OP)
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:@{
$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
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:@{
$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





RE: Formula in Expression wont update - except if I trigger "update for external change"
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.