Variables to show/hide features
Josy_La
Member Posts: 82 ✭✭
Hi,
Can I use variables to show/hide a feature based on length of part? Typically my part has 2 holes at each end but sometime a 3rd center is required if the length exceeds 36 inches. I have modeled the center hole separately thinking it may help but I don't know how to approach it so that the part is adaptive.
Can anyone help?
Can I use variables to show/hide a feature based on length of part? Typically my part has 2 holes at each end but sometime a 3rd center is required if the length exceeds 36 inches. I have modeled the center hole separately thinking it may help but I don't know how to approach it so that the part is adaptive.
Can anyone help?
0
Best Answer
-
Thanks Kevin it works perfectly.0
Answers
-
You can put that length into a parametric variable (either with a manual variable feature or with the Measure Distance custom feature).
Then you can set the depth of your additional hole to something like(#Length > 36 in) ? (1.5 in) : (0 in)
Parentheses optional. See the thread on Onshape expressions for this trick and more!
0 -
Thanks Kevin it works perfectly.0

