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!
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
RE: Leading zeros for interpart relationships
RE: Leading zeros for interpart relationships
<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
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
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
www.nxjournaling.com
RE: Leading zeros for interpart relationships
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
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
RE: Leading zeros for interpart relationships
www.nxjournaling.com