bbylls
Mechanical
- Feb 11, 2011
- 163
I am looking for information an the format() syntax that can be used in expressions.
I have used ug_setPartAttrValue("DESCRIPTION",format("BAR %3f dia. x ",p0) + format("%.2f",p1))
This gives me a bar diameter of 3 decimal places based on the value of p0 and the length based on the value of p1.
I imagine this can be used in many other ways, maybe as a text substitute, extract, replace, etc?
Did a search in the help file and found nothing.
I am using NX8.
Maybe one of the hidden secrets.
Thank you.
I have used ug_setPartAttrValue("DESCRIPTION",format("BAR %3f dia. x ",p0) + format("%.2f",p1))
This gives me a bar diameter of 3 decimal places based on the value of p0 and the length based on the value of p1.
I imagine this can be used in many other ways, maybe as a text substitute, extract, replace, etc?
Did a search in the help file and found nothing.
I am using NX8.
Maybe one of the hidden secrets.
Thank you.