Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Displaying a Components Expression value NX 8.5

Status
Not open for further replies.

3dr

Automotive
Joined
Jul 10, 2004
Messages
456
Location
US
I've got some older parts in my personal library that do this... worked on it a couple years ago.

REF: thread561-278494

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
 
For one thing, starting with NX 8.0, we no longer recommend that you use KF routines to share Attributes and Expression values. That being said, I don't think there's anything to explicitly control leading zeros when linking Drafting notes to Expressions/Attributes.

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.
 
Uh oh...

Ok, What's a KF routine??? And is there an alternate to what your no longer recommending???

Thanks!
 
There are now explicit functions to link Attributes to Expressions, and Expressions to Attributes. You can find these functions in the Properties and Expressions dialogs.

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.
 
@ John... Things are little slow and I'm revisiting this.

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
 
Your expression will become:

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.

download.aspx


www.nxjournaling.com
 
Thank you Cowski! I was looking at this problem from the Expressions Dialogue and it never occurred to me to look at it from the Attributes side!
 
That worked excellent.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top