Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Creo Proprogram

j.s.srihari

New member
This is my program

INPUT
LENGTH NUMBER
"ENTER THE LENGTH OF THE NIPPLE MIN VALUE 15.00"
DIA STRING
"ENTER THE Diameter of the nipple " ONEEIGTH OR ONEFOURTH ""
END INPUT

RELATIONS
D3 = LENGTH
IF DIA == " oneeigth "
D6 = 12.00
D2 = 10.00
D1 = 6
ENDIF
IF DIA == " onefourth "
D6 = 17.00
D2 = 14.00
D1 = 6
ENDIF
END RELATIONS

only length variable changes, other parameters are not changing. please suggest any thing wrong
 
It is possible that your IF conditions are not being satisfied because the input string is not " oneeigth " with leading and trailing spaces. Try changing the condition to "oneeigth" - without leading or trailing spaces. Try setting a parameter value inside your conditional sections to verify that they are running e.g. TEST= "good". If the conditions are running and the D# values are still not getting set then it is likely that you are having a problem addressing them. In that case check the syntax and verify that you can simply set a dimension value e.g. D3=15.00
 

Sponsor

Articles From 3DCAD World

Back
Top