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 can I adjust part pattern spacing based on part geometry?
Lachlan_Barrell
Member Posts: 2 EDU
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.
0
Answers
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.
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
Try this. The replicate feature combined with @Evan_Reese linear pattern plus feature are a great marriage for this type of dynamic assembly requirement.
https://cad.onshape.com/documents/cf12ccf90d79b8f1dd0e8a50/w/e1ecd84c182cea790ebae04d/e/ec9342d6f652aea45939838c?configuration=legnth=1.143+meter;size=0.254+meter&renderMode=0&uiState=63540f833a5a7b44bd771872