Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

ug_askCurrentWorkPart() in NX7.5

Status
Not open for further replies.

IvanNX

Mechanical
Jun 9, 2005
267
Again me with expressions...

ug_askCurrentWorkPart() function is not update automatically when name of part is changed (on save as or clone part, then part open with new name)... is this bug and how to make it update every time part is opened?
 
Replies continue below

Recommended for you

Have you tried performing an...

Tools -> Update -> Update for External Change

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.
 
Yes John, I tried that and it works.

What I am asking for is auto update on clone or save as command, something that work like ug_setPartAttrValue(), when i clone part that have ug_setPartAttrValue() it update attribute when part is cloned, without need for my manual update.
 
Hi Ivan,
Are you using Knowledge fusion by any chance? If yes then probably you can use DEMANDVALUE() for the value to get changed automatically.
Best Regards
Kapil Sharma
 
Probably not...but i guess (i may be wrong though) from NX8 onwards this function cannot be accessed through expressions.I just looked out for it and couldn't find it in expressions function list.Although i normally use KF to access these functions and then use demandvalue to control the update but let me see if i am wrong in saying that it is not a part of expression functions in NX8 or NX8.5.
Best Regards
Kapil Sharma
 
I am not using KF for this, just native NX

you can't find this function with search tool in expressions... i do not know why...

You can try it in any NX just as it is. I use it:
expression
type: string
name: part_name
formula: ug_askCurrentWorkPart()
expression value should be name of the part.

i can confirm that it works in NX 8 and NX 8.5, (i have them but customer is using NX 7.5 so i have to work in it).
hmmm.... i heaven't tried if it will update automatically in NX 8 or NX 8.5 ... just know that function works in them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor