How Can I Arbitrarily Union All Parts?

Kyler_Walker
Kyler_Walker Member Posts: 211 ✭✭✭✭
Hello.  I have a part pattern that has an instance count that is dependent of a configuration variable.  After the pattern, I want to do a union of all the parts in the part studio.  Is there a way I can easily union all parts, similar to "Merge with all." Thanks!

Best Answer

  • _anton
    _anton Member, Onshape Employees Posts: 555 image
    Answer ✓

    With query variables, released last week, you don't actually need a custom feature: https://cad.onshape.com/documents/1d6e0377cf0f750eff7459ce/w/1c7134042e9bafff5eb91889/e/7153a5bd1aeae6d9dbaf9635

Answers

  • _anton
    _anton Member, Onshape Employees Posts: 555 image
    If the parts can be booleaned together, the pattern feature should be able to do that for you. Else, you'd want to make a composite part, though, AFAIK, you'd need a custom feature for that.
  • Kyler_Walker
    Kyler_Walker Member Posts: 211 ✭✭✭✭
    @_anton Oops!  I thought I was doing a part pattern, but it turns out I was doing a feature pattern of the extrude that made the patterned part.  Thanks!  

  • S1mon
    S1mon Member Posts: 4,628 PRO
    The first question would be: is there a way to pattern features which will merge things automatically instead? 

    There are some custom features out there which will Boolean/Add all the parts in a studio or all the parts created by selected features. I can't find them at the moment.
    @GregBrown ?

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • jelte_steur_info
    jelte_steur_info Member Posts: 683 PRO
    edited June 2024
    @S1mon
    indeed @GregBrown brown has an awesome and rather simple feature for this in Beta: (auto-boolean)
    https://cad.onshape.com/documents/20afd0071b1fd882855e31f3/v/a861552f5b8dcff963345bfe/e/fc706ce0880ab89b509732af
  • Kyler_Walker
    Kyler_Walker Member Posts: 211 ✭✭✭✭
    @S1mon
    Interestingly, a feature pattern of my Extrude feature returns different results depending on whether I choose Add or New.  With the New option, the result is what I want.  I think this is what led me to think I was doing a part pattern when it was really a feature pattern.  I don't know why a feature pattern of an Extrude Add gives a different result than a Part Pattern with the Add option.

    @jelte_steur814
    Thanks!  I will save that one for future use.
  • rick_randall
    rick_randall Member Posts: 443 ✭✭✭
    I encourage you to refresh your knowledge of patterns, and how they work in the self paced help courses - part pattern and feature pattern work differently, "part pattern" patterns the whole part, while "feature pattern" patterns just one, or a series of features that you choose (not the whole part). Good luck
  • Kyler_Walker
    Kyler_Walker Member Posts: 211 ✭✭✭✭
    I encourage you to refresh your knowledge of patterns, and how they work in the self paced help courses - part pattern and feature pattern work differently, "part pattern" patterns the whole part, while "feature pattern" patterns just one, or a series of features that you choose (not the whole part). Good luck
    I think I have decent understanding of the different types of patterns.  I just was mistaken about the type of pattern I was using when I wrote my post.  A feature pattern of an Extrude New returns a similar looking result to a part pattern.  What confuses me is why a feature pattern of an Extrude New behaves completely differently than an Extrude Add.
  • peter_van_westen
    peter_van_westen Member Posts: 20 ✭

    If anybody is interested:
    https://cad.onshape.com/documents/075f62882b1dfc1583eeb76f/w/630653a0c42e1a4e8c9161a9/e/999a72448fe97ac9d972fdca

  • _anton
    _anton Member, Onshape Employees Posts: 555 image
    Answer ✓

    With query variables, released last week, you don't actually need a custom feature: https://cad.onshape.com/documents/1d6e0377cf0f750eff7459ce/w/1c7134042e9bafff5eb91889/e/7153a5bd1aeae6d9dbaf9635