Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creo Proprogram

  • Thread starter Thread starter j.s.srihari
  • Start date Start date
J

j.s.srihari

Guest
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
 
Is an else statement required? (what if they misspell oneeeigth or oneforuth?)
 

Part and Inventory Search

Sponsor

Back
Top