×
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

NX 8 ug_setAttrValue UPDATE ISSUES

NX 8 ug_setAttrValue UPDATE ISSUES

NX 8 ug_setAttrValue UPDATE ISSUES

(OP)
NX 8.03.4r MP7 VERSION
We are experiencing issues with the ug_setAttrValue expression output. It has worked in previous version fine, but now any file opened up in nx8 seems to read to the end of the If else statement and output the end result of the statement, even though the statement is false.
e.g.

ug_setAttrValue_("", "PART_ATTRIBUTE", "DESCRIPTION", IF(TYPE==0)("GMSP (SEE DATA)")ELSE(IF(set_vendor==0)(dayton_callout)ELSE(IF(set_vendor==1)(lane_callout)ELSE if(set_vendor=2)(moeller_callout)else(" "))))

It can be fixed by simply updating one of the expression variables that drives the statement and it will update fine, problem is every time you close and open the file it reverts back to the end line result no matter true or not. Also can be updated by Tools> update> update for external change, but will not save correctly as well.

So is this a ug setting or a bug? I realize ug has created some more options using attributes at the assembly level and can select the options for component properties or assembly properties so I am wondering if this part of the problem.

RE: NX 8 ug_setAttrValue UPDATE ISSUES

If you're running NX 8.0 I would recommend that you stop using the Attribute functions from the f(x) area and instead use the new direct Expression/Attribute exchange functions now available in the Attribute dialog and the Expression dialog.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
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