Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Dear PTC,
I make spring model & it's drawing.It's all dimensional parameter are joined by relation.
But in relation, i want to use "if" function for spring wire guage. so, how i can use "if"
function. please reply.
thanks,
Nitin Sheladiya
Nitin see picture
Picture given by Graham explains very well.
In addition to that, conditions starts with 'IF' and should end with 'ENDIF' otherwise relation fails. when you use 'IF' multiple times in one condition, you also have to use 'ENDIF' same no. of times. otherwise your relation will fail.
Like, if OD = ID
if OD > ID
R=1
endif
endif
I would recommend using ELSE statement since mostly it calls for original parameters. If condition doesnt work, then 'ELSE' statement calls the original parameters/condition.
R=2
if OD > ID
R=1
else,
R=2 (original value)
endif
hope this helps you.