I was using NX5
In the expressions I had:
HEATER=ug_setPartAttrValue("DESCRIPTION",format("HEATER %.3f dia. x ",p0) + format("%.2f",p1))
p0=heater diameter=.625
p1=heater length=30.0
It was a cylinder representing a tubular heater in a mold.
The part attribute DESCRIPTION would be "HEATER 0.625 dia. X 31.00"
Now in NX8.5 the DESCRIPTION is "HEATER 15.875 X 787.40
The part is in inches but the description is coming out in millimeters.
Is this a bug or am I missing something?
Did they change how format works?
I work around it by: ug_setPartAttrValue("DESCRIPTION",format("HEATER %.3f dia. x ",p0/25.4) + format("%.2f",p1/25.4))
In the expressions I had:
HEATER=ug_setPartAttrValue("DESCRIPTION",format("HEATER %.3f dia. x ",p0) + format("%.2f",p1))
p0=heater diameter=.625
p1=heater length=30.0
It was a cylinder representing a tubular heater in a mold.
The part attribute DESCRIPTION would be "HEATER 0.625 dia. X 31.00"
Now in NX8.5 the DESCRIPTION is "HEATER 15.875 X 787.40
The part is in inches but the description is coming out in millimeters.
Is this a bug or am I missing something?
Did they change how format works?
I work around it by: ug_setPartAttrValue("DESCRIPTION",format("HEATER %.3f dia. x ",p0/25.4) + format("%.2f",p1/25.4))