Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

Can you create a configuration based on the results of two or more other configurations?

Joel_MullerJoel_Muller Member Posts: 2 PRO
Say I have two configurations and I choose "A" from the list of one and "B" from the list of the other, can you create a new configuration that, based on these selections, could be used to suppress/unsuppress other parts or features?

Answers

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,688
    No way I can think of.
    Senior Director, Technical Services, EMEAI
  • chadstoltzfuschadstoltzfus Member, Developers, csevp Posts: 142 PRO
    There's no way to dynamically change the configuration parameters based on other configuration parameters, but there's a lot of hacks you can do using custom features and some if/else shorthand (condition ? If true : If false). There are some ways to get "suppression" involving multiple configuration inputs. Two options I've used before are:
    • Create a custom feature that is a copy of an existing Onshape feature (like Extrude), and create a new feature parameter that will break the feature if given a 0, or let the feature execute if given a 1. From there, you can create a part studio variable that looks at the results of both list parameters and uses the if/else shorthand to set the 0/1 for the custom feature.
    • Depending on the features/parts you're trying to suppress, you could just create a variable that looks at the drop downs and sends a value to the Onshape feature that just breaks it depending on the results of the drop downs. 
    Applications Developer at Premier Custom Built
    chadstoltzfus@premiercb.com
Sign In or Register to comment.