Parameter Max Rule

Parameter Max Rule

ASchlaack
Collaborator Collaborator
560 Views
1 Reply
Message 1 of 2

Parameter Max Rule

ASchlaack
Collaborator
Collaborator

I have a form to adjust a parameter that has a max value of 240 in. How can I write a rule to not let anything higher than that be entered and have a message box come up saying that a value thats too high was entered?

Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
0 Likes
Accepted solutions (1)
561 Views
1 Reply
Reply (1)
Message 2 of 2

mrattray
Advisor
Advisor
Accepted solution
If myParameter > 240 Then
   msgbox("Value too high",vbOKOnly,"No dice")
   myParameter = 240
End If

 

Mike (not Matt) Rattray