Displaying a Components Expression value NX 8.5
Displaying a Components Expression value NX 8.5
(OP)
I've got some older parts in my personal library that do this... worked on it a couple years ago.
REF: thread561-278494: Displaying a componets expression value in parts list NX7.5
I can control trailing zero outputs... but can I also control leading zero's?
John was a great help it getting me started... would like to do some expansion.
TIA for any help
Dave
REF: thread561-278494: Displaying a componets expression value in parts list NX7.5
I can control trailing zero outputs... but can I also control leading zero's?
John was a great help it getting me started... would like to do some expansion.
TIA for any help
Dave





RE: Displaying a Components Expression value NX 8.5
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.
RE: Displaying a Components Expression value NX 8.5
Ok, What's a KF routine??? And is there an alternate to what your no longer recommending???
Thanks!
RE: Displaying a Components Expression value NX 8.5
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.
RE: Displaying a Components Expression value NX 8.5
This is the expression I'm using to report back to the parts list. In this example values in the expressions driving the model happen to be used in the commercial part number as well.
Expression Type = Number
Expression Name = x_bom_data
ug_setPartAttrValue("BOM_6_CAT_NO",format("HJX D%0.2f ",D)+format("L%0.2f ",L)+format("B%0.2f ",B)+format("P%0.4f ",P))
Can you give me an idea of what the new method would look like? I've been playing around and not getting far. Plus, I'm more of a copy cat due to having little time to learn on my own! If you can push me a little further in the right direction I'll be ok.
TIA, Dave
NX9
RE: Displaying a Components Expression value NX 8.5
CODE
format("HJX D%0.2f ",D)+format("L%0.2f ",L)+format("B%0.2f ",B)+format("P%0.4f ",P)Now go to the file properties and create your BOM_6_CAT_NO attribute and link it to the existing expression.
www.nxjournaling.com
RE: Displaying a Components Expression value NX 8.5
RE: Displaying a Components Expression value NX 8.5
Is there a way to include an expression value that isn't a number? Something like a mat'l??
Such as M2, A2, CPM4 etc...
It could be pulled from an attribute too, if NX can do that.
TIA
Dave