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.
Part studio with multiple states for suppressed features
florian
Member, OS Professional Posts: 110 ✭✭✭
Hi,
I couldn't get my head around what would be the best way to create multiple part states. E.g.
How would you do it in our cloudy-onshape-rapid-x world?
Other approach:
I could create three versions => That is very manual and if the customer wants one dimension changed I'd have to branch again or create more versions.
Looking forward to your ideas!
Flo
I couldn't get my head around what would be the best way to create multiple part states. E.g.
- Rapid manufacturing (With machining offsets)
- Final part after machining
- Customer version for STEP export leaving out the stuff that make us special
- Have a few documents for each customizable part
- Save a version when the we have a baseline design
- Branch that design for a new customer order and change variables (ideally upload, use a form etc…)
- Create three states of that design (see numbered list above) and export an STL (for step 1) and PDF for simple machining (2) and another PDF and STEP for the customer (3).
- Improve the general design in the main branch and save a new version to branch from in the future.
document - part_name - state.filetype
How would you do it in our cloudy-onshape-rapid-x world?
Other approach:
I could create three versions => That is very manual and if the customer wants one dimension changed I'd have to branch again or create more versions.
Looking forward to your ideas!
Flo
Tagged:
1
Comments
Suppose you define a variable "state" at the top of your feature list and you set it to 0, 1, or 2. Then, say, if you have an extrusion whose depth you want to be 4, 3, or 4.5 mm depending on the state, you can enter [4 mm, 3 mm, 4.5 mm][#state] into the depth field of that extrusion. If you would like to suppress the extrude in state 2 instead, I don't know how to do that, but you can make it fail (which will have the same effect except it will turn red) by writing [4 mm, 3 mm, 1 deg][#state] (or something similarly invalid as the 3rd item). Note that to be able to commit an invalid input, you will need to have the state variable set to a number where the feature is valid (so you would be able to commit the prior expression if #state is 0 or 1 but not 2). This trick will also not work to "suppress" features that don't have an input where you can type an expression (like Delete Face or Split).
To simulate the effect of selective rollback (e.g., you have a main state and then some manufacturing features), you can have the main state in one part studio and have a derived part studio that has the manufacturing features.
To reiterate, we will have configurations, but for the time being, some ugly cleverness can save time...
Wow, so we have 'case' function in variables! This is huge, almost like poor man's configurations..
I did not know about this, did I miss something or is this hidden feature without proper documentation?
Same thing goes for round -command revealed in forum some time ago.. is there more of these?
https://cad.onshape.com/help/#numeric-fields.htm
under the (slightly misleadingly titled) category
"Accepted unit keywords", which is collapsed by default.
I'm sure you have made some card-carrying geek users very very happy.
I'll post a link to your ingenious suggestion in the "Powerful Workarounds" thread.
Thanks.
I still hope that help get's more integrated into UI so that people like me could get the information without crawling through tabs and digging under collapsed headers.
I like tooltips, if you know what you are doing and move fast only small one appears, if you stop for a while to think bigger one opens with more information. Maybe there could be 3rd stage with even more information and videos on how to use certain feature.
I hear you. One particular reason to dislike collapsed headers is that the browser's "Find" will not find words buried under them, such as "round" in the instance discussed above.
I am a fan of authentic simplicity. Synthetic simplicity: not so much.
(an acknowledged subset of the actual functionality - but I personally think it would be immature to expect otherwise, particularly in beta)
The entirety of (uncollapsed!) Help can be viewed, or downloaded, from
https://cad.onshape.com/help/PDF/Onshape.pdf
(Thanks to @john_rousseau for posting the kosher link in another connection)
If the pdf is viewed from a web browser, the rudimentary "Find" (on this page) will locate the "round" function
but it finds that text string within longer words, making things a bit more laborious than if the (latest) pdf is downloaded and the much more powerful search capabilities of, say, an Adobe Reader are brought to bear
https://cad.onshape.com/documents/e85ffca120784e42ac86c80d/w/69b20e3da3024bb0adbb59ef/e/e086e68f386d4a5e8da35234
@ilya_baran 's excellent explanation already won my heart, but the reality is actually less unwieldy still than I imagined.
Even in this quite potent example, where some features change size while others are effectively suppressed.