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.

What's a smart way to set up a configurable mesh using Configuration Variables?

Tristan_NeumannTristan_Neumann Member Posts: 15 PRO
I am trying to create a wire mesh as a configurable part. I want to be able to put in the width and height in terms of how many vertical wires, and how many horizontal wires there are. I set up some variables for the width and height, and then used them to drive my model. The issue I am running into is that when I pattern my individual wires they are interpreted by onshape as being separate parts, meaning that I need to use a Boolean function at the end to union all of the separate wires into one part. This is fine until I change the height and width, because then onshape does not add or remove the new parts to the Boolean function. 

Another approach I tried was to pattern my sketch instead of the solids. This way when I extrude my horizontal wires through the vertical ones I can select "Add" instead of "New" in the extrude function to create one part. However this only moves the problem, because now I need to define the merge scope for this extrude function, which causes the same issue as with the Boolean function in the above example.
     While trying this approach I also noticed that you can only drive the instance count of a pattern in a sketch when you initially create the pattern. Once it is created it looses the reference to the variable and will not update. Is this a known bug/limitation of the software?

The bellow document has a branch for each approach.

 https://cad.onshape.com/documents/59c489b94b9314070f168e44/w/5e9eeca0ecb3c84f21fbe29d/e/c6963836ae4262f973cb84c3


Best Answer

  • S1monS1mon Member Posts: 3,039 PRO
    Answer ✓
    Your document doesn't appear to be public.

    If you create the two directions first (making sure that the second direction is adding to the first), and then do face patterns, it will be fast, and robust.


Answers

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,714
    edited July 2022
    Senior Director, Technical Services, EMEAI
  • S1monS1mon Member Posts: 3,039 PRO
    Answer ✓
    Your document doesn't appear to be public.

    If you create the two directions first (making sure that the second direction is adding to the first), and then do face patterns, it will be fast, and robust.


  • Tristan_NeumannTristan_Neumann Member Posts: 15 PRO
    Thanks S1mon, this is exactly what I was looking for. The key was doing the face pattern instead of the part pattern. Makes a lot of sense in hindsight. I also made the document public if anyone wants to take a look.
  • EvanReeseEvanReese Member, Mentor Posts: 2,186 ✭✭✭✭✭
    I love the solution @S1mon came up with. Super clever.

    If I were approaching this, I'd use my custom feature Linear Pattern Plus, which lets you specify the total length of the pattern, and make a composite part from the result. This way you don't have any booleaning (booleans are one of the most computational things that Onshape does). I patterned both as composite parts, then did one last composite to make them into a single part. That way you still just end up with one thing to deal with, but don't do any boolean operations. I'd at least check on the rebuild time difference between both methods and pick the fastest.

    https://cad.onshape.com/documents/9006943f7fd8627fb2aa2c38/w/281f0cd1123ea0b70d0e7d1e/e/3db5c54be2ce18182e8fbf83
    Evan Reese
  • S1monS1mon Member Posts: 3,039 PRO
    One trick with the face patterns: they only work if the intersections on the first/last columns/rows overlap the same as the middle ones. If not, the face topology changes and it doesn't work.
Sign In or Register to comment.