Parameters automation - limitation of typed values
- January 28, 2016
- 3 replies
- 4576 views
Hello everyone.
I am now working on the project for my Creo course and I am using parameters and relations. I have also added an extra option according to which during every regeneration of the model there appears a small window where you can provide the value of each parameter (I did it as follows: Tools > Model Intent > Program > Edit Design). Everything works perfectly, however, I would like to limit the possibility of entering values. I'm going to explain it according to the specific example. Let's go.
I decide at the begining that my model has for example a shape of the rectangle and is extruded at some distance. So, I create three parameter: SIDE1, SIDE2 and EXTRUDE. I'm choosing Tools > ... > Edit Design and in the new window between INPUT - END INPUT I provide each parameter with the proper command (e.g. "Enter the value of side 1" and so on). Now, after each regeneration I can change those values and my model is transformed. Ok, but I would like to limit now the range of each parameter. For instance, I want SIDE1 to be not shorter than 1 and ad the same time not longer than 5, so if someone provides 6 for this parameter there will appear the information "Wrong value. Operate between 1-5".
And my question is: does anyone have any idea how to do this limitation? I expect that it is connected somehow with IF fuction, however, I don't know where exactly should I use it (I expect that in the same window as I introduced parameters to be displayed but I don't know the exact place in this document).
I will be very grateful for your help 
PS.: I attach my file. Please explain it according to this one, if you can of course 
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

