×
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

Leading zeros for interpart relationships

Leading zeros for interpart relationships

Leading zeros for interpart relationships

(OP)
Hello,

Looking for some knowledge about leading zeros when using interpart relationships. Let me know if I omit any detail that you may need. I'll try to post everything that I know folks will ask for and abbreviate the background.

I am working with NX6.0.5.3 and TC8.3

I have a couple dimensions on a template drawing that are linked to expressions of their model. When I see them displayed in the template there are no leading zeros.

After I use a visual basic script to change the geometry, save as, and update views..... these interpart relationships now show leading zeros. The remainder of the drawing does not contain leading zeros.

I assume this is because the interpart relationships that I have created are no longer dimensions, but more like a note with extension lines and leaders. I used Edit>Annotation>Text to remove the actual dimension value and replace it with the relationship. Perhaps there is a better way to perform this kind of action.

Any insight will be greatly appreciated, I'd attach the files, however they are proprietary to a division in my business and I'm not sure it is worth the time spent to create a version to share.

Thanks,
Boiler UP! Let’s hope Purdue can grab a road win tonight... desperately needed!

RE: Leading zeros for interpart relationships

Are you a college student ?

RE: Leading zeros for interpart relationships

(OP)
No,I've been in my industry for 8 years. I take it you didn't find humor in my last comment. Aside from that, any thoughts on my NX problem?

RE: Leading zeros for interpart relationships

Try changing your note text to:
<X0.n@[expression]>
Where n = number of decimal places desired and
[expression] = the name of the expression you are referencing.

www.nxjournaling.com

RE: Leading zeros for interpart relationships

(OP)
Cowski,

Thanks for the reply, however the 'n' in your example changes the number of characters after the decimal as you have indicated.

I have tried changing the logic before with different characters with no luck.
<X0.n@[expression]>
Can you tell me what the '0' does in your example?


Perhaps I also did not explain my original question well.

For example:

I am looking to display the value .024 and my template or master drawing shows this value correctly as .024 however after the new drawing is created via visual basic journal the same value, expression, and style now shows 0.024

It is particularly confusing as some of the dimensions on the drawing are linked via interpart relationship and some are not... the leading zeros setting and the conventional dimensions never show a leading zero.

Hope this helps.. I'll perform a manual save as tomorrow and see if the problem is repeatable outside of the VB journal.

RE: Leading zeros for interpart relationships

Quote (NX Help)

Use the following control strings to embed expressions and attribute information in your text.

Expression Value
<Xm.n@exp_name>

"X" indicates a reference to an expression. "m" indicates the minimum field width. If required, the expression value is padded with blank spaces on the left to fill the field width. If m=0 the leading zero is suppressed.

"n" indicates the maximum number of digits after the decimal point of the expression value. If n=0 the value displays as a whole number. "m" and "n" can be separated by a comma or a period depending on the decimal point separator desired.

To find it in the help file, search for: "Using expressions and attributes to format text". The next line of the help indicates the "m.n" portion can be omitted and the dimension style settings will take over (theoretically).

www.nxjournaling.com

RE: Leading zeros for interpart relationships

I ran a quick test before posting, <X0.3@[exp]> suppressed the leading zero whereas <X.3@[exp]> did not. I omitted the m.n and the dimension style did indeed control the number of decimal places, however it did not honor the "leading zero" setting. Interestingly, it did not show the leading zero no matter the setting; opposite of the problem you are having. Note I was testing with an expression in the same part (not an interpart expression); also, I did not try to perform a save-as on the file.

www.nxjournaling.com

RE: Leading zeros for interpart relationships

(OP)
Cowski,

Thank you for the help, I now have a few things to chase and test. I did comment in mistake previously, my VB journal clones the files, not technically a save as. I will test this manually as well and see the results.

RE: Leading zeros for interpart relationships

(OP)
All,

Sorry it just hit me what the most likely problem is here. The VB journal is running on a server that is using NX6.0.4.3. My PC is running 6.0.5.3. THis could be why it shows correctly in my template locally and once the files are created from the server they show incorrectly. I'll repost if 6.0.5.3 on the server does not solve my problem.

IR Number: 6243441

Problem Description: When entering the Relationship of Expressions there is a leading Zero for an Inch standard drawing, <X00.5@test> displays as "0.12500" (TEST=.125) where as it should be displayed as ".12500". This did not happen using NX5.

Solution: Siemens PLM believes that the problem you reported where the Leading Zero of an Annotation Relationship for an Inch drawing should not be there will be resolved by code changes made to the upcoming release of our software NX6.0.5.

RE: Leading zeros for interpart relationships

(OP)
6.0.5.3 on the automation server was the solution. Thanks for you time Cowski. Sorry I didn't think about where the NX session was opening.

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