Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hello,
I have several start parts that I use to design fixtures. One is a simple dowel pin 6.35 mm dia.
I want to create a parameter that would display in a table the diameter which will always be 6.35 mm and the length which would vary.
The capture below is what I tried but it displays in my table just as typed and does not display the d1 dimension which is my length.
Anyone have any advice on the proper syntax to use?
I am using Creo 4.0
Solved! Go to Solution.
Hi,
if length is always integer value, then you can apply following relation
MATERIAL = "ø 6.35 mm x " + itos(d1) + " mm"
MH
d1 is a value, not a string. You will have to convert it to a string.
There have been many topics in the Community on doing this. Here are just 2:
Hi,
if length is always integer value, then you can apply following relation
MATERIAL = "ø 6.35 mm x " + itos(d1) + " mm"
MH
Thanks for the help. That worked perfect for me.
If you wouldn't mind is there a way to control the decimal places?
It is rounding my d1 value to the nearest whole number.
Hi,
see links provided by Ben Loosli.
MH
I just finished doing that and it worked great. Thanks to you both!!!!