Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape, CAD, maker project and design.

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.

Subdivide an element

baumarbaumar OS Professional Posts: 38 PRO
edited May 21 in Community Support
Hi, 

I have several elements in my drawing that I would like to subdivide in equal subelements. I created a sketch showing the whole element and the goal that is the element composed of subelements ( the size of the sub elements is not equal, but will have to be in the real subdivision). 

Does anybody knows a smart way to do that? If there isn't a standard function I ignored so far, would there be a feature that does the job?

Thanks for help

Markus


https://cad.onshape.com/documents/6241cb432116d5696cd40a02/w/08ce71397dea0649f2c253e5/e/4b780ac1d0be3266e6b2eb6a

Best Answer

  • baumarbaumar OS Professional Posts: 38 PRO
    Accepted Answer
    Thanks for the hint. Just one follow up question. I have to split an extrude into 40 subparts. 
    is there a way to separate it easily (that is without creating 40 planes and splits) into 40 subparts? Maybe  there is a function or a feature script from someone who had the same demand?

Answers

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 1,040
    Try the Split command - you can split a solid using an extruded surface
    Neil Cooke, Director of Technical Marketing, Onshape Inc.
  • baumarbaumar OS Professional Posts: 38 PRO
    Accepted Answer
    Thanks for the hint. Just one follow up question. I have to split an extrude into 40 subparts. 
    is there a way to separate it easily (that is without creating 40 planes and splits) into 40 subparts? Maybe  there is a function or a feature script from someone who had the same demand?
  • Jake_RosenfeldJake_Rosenfeld Onshape Employees, Developers Posts: 407
    Hello @baumar

    This is the kind of thing that our 'Feature pattern' is for. I've made you an example doc showing how to slice an extruded piece 40 times:
    https://cad.onshape.com/documents/bb912de1a3bb5eace5e4a9af/w/38f1a1db373548e870711bf5/e/e3a738a0358d34ebf0bcb9fe

    You can copy this document and double click on the features to see their inputs.  I made heave use of variables, so changing any of the variables at the top of the feature tree should change the model accordingly.

    https://cad.onshape.com/help/Content/linearpattern.htm
    https://www.onshape.com/videos/patterns-in-onshape-04-20-17
    Jake Rosenfeld - Modeling Team
  • baumarbaumar OS Professional Posts: 38 PRO
    Hi Jake, that's terrific, thanks a lot! Now I just have to figure out to use it on my parts...
  • baumarbaumar OS Professional Posts: 38 PRO
    Hi Jake, I could successfully adapt your pattern, great stuff!
    Just one little question: I searched where the variables that you defined will be used and I found by chance that clicking in the fields where the value appears that it is referenced with an # like #widthEach. so I can use any variable and use it anywhere in any item I guess?

    Another thing I didn't get right is this: Even when I change the width to 50, the whole construction looks the same - though the distance is 5 times bigger. but just now I saw that you can obviously use the variable also in the drawing, is that right? That's awesome, because now you can give it a meaningful name instead of a 'meaningless' number
  • baumarbaumar OS Professional Posts: 38 PRO
    Short follow up question: I don't  find the variable Icon in my Part studio, neither in assembly. Is it possible that this feature is not backward compatible?
  • Jake_RosenfeldJake_Rosenfeld Onshape Employees, Developers Posts: 407
    Hi @baumar ,

    To answer your question to the best of my ability:  Variables exist within the context of one part studio, they are not global to a document, and therefore cannot be used in an Assembly or a Drawing.  Variables can be used in all input boxes of a part studio (with a small few exceptions).  Variables are just features of a part studio, so they act like all other features with respect to our parametric system; namely, you can only use a variable in a feature that is after the "Variable" feature that defines the variable you're trying to use.  Variables are always referenced as #variableName.

    https://cad.onshape.com/help/Content/variable.htm

    There should definitely be a variable feature in your part studio. It looks like "(x)".  If you are using a small screen, it may be hiding in the second-to-rightmost dropdown:

    Jake Rosenfeld - Modeling Team
Sign In or Register to comment.