Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts!
X
Thanks for all the ideas and input. I think Janet's response was the most elegant;
Using a parameter called ANGLE that you store the input angle in, and dim_angle which is the angular dimension being controlled:
dim_angle = floor(ANGLE / 90.0) * 90.0
HTH
Janet Grove
John Deere Power Systems
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.
If you're going to use a parameter then give it a restricted parameter definition. That way the user will get immediate feedback on non-allowed values during input.
ND_ParamDefArr_K01 = {
{ Name = Angle Type = real Default = 90 Enum = {0, 90, 180, 270} }