Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Leading zeros for interpart relationships

Status
Not open for further replies.

Trietsch

Industrial
Aug 17, 2012
48
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!

 
Replies continue below

Recommended for you

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?
 
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
 
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.
 
NX Help said:
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
 
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
 
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.
 
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.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor