Is there a way to disable specific drop-down options

donovan_copioli
donovan_copioli Member Posts: 6 EDU
Is there a way to disable specific drop-down options based on what the user's previous drop-down choice was? For example, on a gear, if the user selected 32DP and on the next dropdown I wanted to disable certain tooth counts how would I do that?

Answers

  • EvanReese
    EvanReese Member, Mentor Posts: 3,105 PRO
    I assume you mean you're making a custom feature and want to do this. Look at Lookup Tables in the documentation. It's how the hole feature works, for example. 
    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • donovan_copioli
    donovan_copioli Member Posts: 6 EDU
    Yes, this answered my question, but I'm going in-depth with this, so is there a way to do it so that when you answer the first drop down it limits the next 3 drop downs instead of just the next one?
  • donovan_copioli
    donovan_copioli Member Posts: 6 EDU
    And second. Once I do a second and third drop-down option how do I define the middle one? so for example on line 13 I have it as 12 teeth but the next drop-down limits you to specific bores of gears. But the thing is that now I can only define the bore of the gear. is there a way to define the tooth count while still limiting the next drop-down?