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.
How do I apply multiple configurations on a single object?
dapug
Member Posts: 17 ✭✭
I have a configuration scenario that requires a few checkboxes to show or hide items, AND those items are ALSO influenced by whether some other configuration was selected. But I do not know how to accomplish this. It seems like IF logic is what is needed on a Suppression so that I can decide whether to suppress or not based on some criteria that I can calculate.
Example:
Configurable Suppression | Shape Test (onshape.com)
Here are 3 shapes. 2 different layouts depending on configuration.
Second layout:
NOTE:
The checkboxes are supposed to SHOW or HIDE the individual shapes depending on whether checked (so, NO shapes should be showing in the first screenshot, and only CIRCLE should be showing in that second screenshot), but checkboxes do NOTHING right now, because I cannot apply Suppression to BOTH the Checkbox configuration, AND the "Layout" configuration (List) which already is configuring that property on those extrudes. So instead, I created some local variables to be set when checked, in hopes to use those variables for LOGIC in order to know and do something elsewhere (such as Suppress/Unsuppress in the Layout, but only after double checking the variable to see if checked).
Why can't we have IF logic on configurations? (Suppression specifically). Meanwhile, is there some other way to approach this?
Example:
Configurable Suppression | Shape Test (onshape.com)
Here are 3 shapes. 2 different layouts depending on configuration.
Second layout:
NOTE:
The checkboxes are supposed to SHOW or HIDE the individual shapes depending on whether checked (so, NO shapes should be showing in the first screenshot, and only CIRCLE should be showing in that second screenshot), but checkboxes do NOTHING right now, because I cannot apply Suppression to BOTH the Checkbox configuration, AND the "Layout" configuration (List) which already is configuring that property on those extrudes. So instead, I created some local variables to be set when checked, in hopes to use those variables for LOGIC in order to know and do something elsewhere (such as Suppress/Unsuppress in the Layout, but only after double checking the variable to see if checked).
Why can't we have IF logic on configurations? (Suppression specifically). Meanwhile, is there some other way to approach this?
0
Comments
I deleted the variables in my version and relied on checkboxes set up in the original part studio, then derived that part into another part studio where you can configure configurations of a derived part.
With assemblies you do have the ability to configure the suppression of a folder in one table and the individual items within the folder so you effectively get "two levels" which can help but that's not available (hopefully "yet"...) in part studios.
Though I imagine if you wanted to, you could write something a little more elegant that doesn't make the feature red, but instead just rename the feature to indicate suppression, then use return true; to end the feature.
chadstoltzfus@premiercb.com