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

Need help patterning holes

marcus_bernsteinmarcus_bernstein Member, User Group Leader Posts: 35 EDU
edited December 2016 in Community Support
Hi Onshape Community, (new to this forum)

I was hoping to get some help on a featurescript project of mine. I am part of a FRC team that works constantly with Hole patterned 1X1, 2X1, and that sort of thing for constructing our robots. I am looking to create a featurescript that creates these tubes for us, using inputs of length, width, height, wall thickness, hole diameter, and hole spacing, and have gotten it far enough so that it does the bar with hollowness, but I can't seem to figure out how to do the hole patterns. I have tried oppattern, optransform, and a ton of options like that, but the proper way of doing this seems to elude me. Could anyone provide some guidance on how I would pattern holes based on user input of spacing between holes and hole diameter?

Here's my onshape file for refrence:

Thanks so much,

-Marcus
Any chance Onshape is looking for interns?

Philadelphia User Group Leader

Best Answer

Answers

  • Options
    mahirmahir Member, Developers Posts: 1,291 ✭✭✭✭✭
    I'd be happy to help, but your file reference didn't come through.
  • Options
    marcus_bernsteinmarcus_bernstein Member, User Group Leader Posts: 35 EDU
    edited December 2016
    Sorry about that, here's the link:

    https://cad.onshape.com/documents/54f892fbfa78fbd35c135167/w/ae41ed43ea4d161de12bd6cc/e/dd4e8d4536e2cc34f7f9468e

    Really appreciate anyone who can help me with this!

    -Marcus
    Any chance Onshape is looking for interns?

    Philadelphia User Group Leader
  • Options
    mahirmahir Member, Developers Posts: 1,291 ✭✭✭✭✭
  • Options
    marcus_bernsteinmarcus_bernstein Member, User Group Leader Posts: 35 EDU
    Mahir,

    That's a great help! I will definitely be looking into the documentation to understand more of the changes you made. That's awesome for 1 by 1's. But I'm really looking for a solution for any width/height. I'm sure I can figure it out with enough messing around, but if you have a good understanding of this type of thing could you provide any more guidance? So like if the width was 2", there would be one set of holes .5" from each side (total 2 columns). Also, it would be great to have the pattern work on both axes. I'm not really sure how this logic would work, so again any help would be very much appreciated! 

    -Marcus
    Any chance Onshape is looking for interns?

    Philadelphia User Group Leader
Sign In or Register to comment.