×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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"

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



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

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources