×
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

Expression value in note displayed as fraction?

Expression value in note displayed as fraction?

Expression value in note displayed as fraction?

(OP)
I know how to display an expression in a note as a decimal using the following format:

<Xm.n@expression>

Is there a way to display the expression in the note as a fraction?

RE: Expression value in note displayed as fraction?

There's nothing which will automatically 'convert' the display of a decimal number into a fractional format, you'll have to do that yourself inside the Expression system and then format the text string using the computed numerator and denominator. Now once you've got the values for the numerator and denominator, depending on how you wish the fraction to appear, there are text control characters which will help you format the final note object. Basically there are 3 different fractional formats supported in NX, as shown below:



The format of the notes for each type of fraction is as follows:

Full Size = 2<V5!8>

2/3 Size = 2<R5!8>

3/4 Size = 2<Q5!8>


Anyway, that should get you what you're looking for.

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: Expression value in note displayed as fraction?

will this ultimatly be shown as a dimension on a drawing ?

RE: Expression value in note displayed as fraction?

(OP)
It will be shown on a drawing, but inside of a note. I need it to automatically update the value inside of the note so I won't have to edit the note every time I change the value. It works in decimal form, but I can't get it to display as a fraction.

RE: Expression value in note displayed as fraction?

I've already provided the only practical solution and while it does require you to convert inside the Expression system the decimal value to an appropriate numerator and denominator, once you have these values you simple insert links to those expressions in the suitable fractional note examples above and you'll have an associative note which will update when the original floating-point expression updates.

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.

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