×
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

Displaying a Components Expression value NX 8.5

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

RE: Displaying a Components Expression value NX 8.5

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.

RE: Displaying a Components Expression value NX 8.5

(OP)
Uh oh...

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

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.

RE: Displaying a Components Expression value NX 8.5

(OP)
@ 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

RE: Displaying a Components Expression value NX 8.5

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.

www.nxjournaling.com

RE: Displaying a Components Expression value NX 8.5

(OP)
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!

RE: Displaying a Components Expression value NX 8.5

(OP)
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

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