Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Feature Script Parameter Bounds driven by another Parameter
bill_schnoebelen
OS Professional, Developers, User Group Leader, csevp Posts: 120 PRO
I am trying to bound a parameter based on the input to another parameter.
For the code below. I want to always make sure Y is less than or equal to X. In another case, I would want Y to be 1/3 X. Is this possible?
If not, is there a TextBox.Change event where I can test?
For the code below. I want to always make sure Y is less than or equal to X. In another case, I would want Y to be 1/3 X. Is this possible?
If not, is there a TextBox.Change event where I can test?
0
Comments
(passing the parameter y in the second argument to regenError will make it highlight in red if it's out of focus)