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.

Options

How can I adjust part pattern spacing based on part geometry?

I'm trying to pattern this part whose dimensions are subject to change. All the parts should be end-to-end, as in the first attached image. Doing this with a pattern seems logical, but I don't know how to drive that pattern's spacing with a variable defined in a Part Studio. If I adjust the length of the part, the pattern does not update accordingly and the parts have gaps/overlaps in their geometry (second image), rather than remaining in the end-to-end configuration. I am able to assemble them and mate their faces together, one after the other (third image) - but repeating the same action many times makes me think that this is a poor approach.

Answers

  • Options
    dirk_van_der_vaartdirk_van_der_vaart Member Posts: 541 ✭✭✭
    Maybe try this?

  • Options
    Lachlan_BarrellLachlan_Barrell Member Posts: 2 EDU
    Maybe try this?

    Thanks for the answer, but this isn't quite what I'm after. If the part's dimensions get modified in the part studio, that wouldn't update the configuration table and the pattern would still have incorrect spacing I believe. 
  • Options
    matthew_stacymatthew_stacy Member Posts: 476 PRO
    @Lachlan_Barrell, you might play with DERIVED parts to see if that does what you need it to.  TRANSFORM using mate connectors and possibly even a dummy part or surface could be applied to define the pattern spacing. 

    Share a link to your document (and make it public) if you want more eyeballs on the problem.
  • Options
    tim_hess427tim_hess427 Member Posts: 648 ✭✭✭✭
    @Lachlan_Barrell - Will the number of components change in the assembly often? I think the "pattern" tool is useful when you want to easily change the number of components in an assembly, but in your case, you may be better of mating the parts manually. If you do this manually, without the pattern feature, your mates will automatically adjust to the changing width. 

    There really isn't a way to pass a variable "up" from a part to an assembly. If you really want to use the pattern, you could make your part's width configurable and then use an assembly configuration to set the width. 

  • Options
    Evan_ReeseEvan_Reese Member Posts: 2,065 PRO
    I share your frustration around this kind of workflow. I hope something cleaner gets implemented eventually. In the near-term, I think the suggestion from @tim_hess427 is the way to go. Make the length of the component a configured variable in the part studio, and the assembly and link them. Here's a quick example. Notice I set the part variable to #length and the pattern distance to #length in the assembly.

    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • Options
    lucas_johnson223lucas_johnson223 Member, csevp Posts: 18 PRO
    Is there any better way to do this now? I seem to have run into the same issue, and can't quite figure it out even with a variable studio.
  • Options
    _anton_anton Member, Onshape Employees Posts: 276
    One approach is to keep #length in a Variable Studio, then reference that from the Part Studio and Assembly. Assuming that the variable is not driven by the Part Studio itself, of course.
  • Options
    steve_shubinsteve_shubin Member Posts: 1,068 ✭✭✭✭
    … but I don't know how to drive that pattern's spacing with a variable defined in a Part Studio

    https://cad.onshape.com/documents/8c0cfad7c0c938dd1492e5f6/w/ce4e2077de9274d5b93f1c3a/e/f55131f50969e4529221f2ab
     
    In this document, I am not dealing with multiple parts. But I am dealing with a pattern's spacing with a variable defined in a Part Studio. I haven't thought this through, but you might be able to adopt some of what is in the document in this post.

    I also am using the variables to adjust numerous aspects of the groove shape, where the shape can be independently adjusted from one end to the other.

    Take a look at what has been entered into the various fields of the various dialog boxes

    Notice how the pattern is not running wild off the ends of the part. But rather, look how it adjusts for the size, which you can tell by the horizontal shelving on the left and right sides.

    And note how when I change the size of the part, the pattern adjusts automatically

    So to @lucas_johnson223, MAYBE there is something in this doc that will help






  • Options
    shawn_crockershawn_crocker Member, OS Professional Posts: 807 PRO
Sign In or Register to comment.