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.

Pattern for feature (Triangle Tile)

darrel_farrdarrel_farr Member Posts: 4

This is my first post, i attempted this with the assistance of ChatGPT, and well it was a waste of 5 hours of my day, i ended up just creating the feature manually using fill pattern and linear pattern. Anyways my goal was to create a feature script that generates alternating triangles in rows in a hexagonal pattern, and since im most likely butchering my explanation of it, here is an image..

image.png

I'm in hopes that someone has either already created or at least has the knowledge that i obviously lack in order to create this with a feature script inside of OnShape on a flat surface. Additionally, i was attempting to also have selection for triangle edge length, spacing between triangles and some kind of border adjustment. TIA

Comments

  • MDesignMDesign Member Posts: 796 ✭✭✭

    Why feature script versus patterns with variables?

  • Matt_ShieldsMatt_Shields Member, Onshape Employees Posts: 618

    Neil's Fill Pattern custom feature is close to what you want.

  • Derek_Van_Allen_BDDerek_Van_Allen_BD Member Posts: 35 PRO

    Julia's Isogrid feature is exactly what you want, but adds holes and fillets to the mix. There's no option not to fillet the corners but I'm sure you can comment all of that part of it out if you want sharp corners.

  • EvanReeseEvanReese Member, Mentor Posts: 2,360 ✭✭✭✭✭

    The ones above are great for this, but my Grid Extrude is also a very simple way. Here's a video tour.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • jelte_steur814jelte_steur814 Member Posts: 450 PRO

    yeah, try @EvanReese 's Grid Extrude: Here's an example (see screenshot below)

    It can do what you're looking for, although if you want to have it end at whole triangles, i'm not sure it'll work.

    that might be worth a feature-improvement-request, although it may be a cumbersome one.

    in your case i thickened the border with a 'move face' an easy improvement for Evan: setting the boundary with a custom width.

    image.png
  • EvanReeseEvanReese Member, Mentor Posts: 2,360 ✭✭✭✭✭

    @jelte_steur814 I opted against a separate border width, but I've run into it enough times (and others have too) so I'll have to add it. I also like the idea of some kind of cull border so you don't end up with tiny incomplete slivers or something, but that'll take more thought.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • EvanReeseEvanReese Member, Mentor Posts: 2,360 ✭✭✭✭✭

    Actually went ahead and added it. update to V15 for that!

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • darrel_farrdarrel_farr Member Posts: 4

    Thank you everyone for the responses, i appreciate the advice and solutions, and i apologize that i wasnt aware of existing feature scripts that could accomplish my need. Again i appreciate you all

  • EvanReeseEvanReese Member, Mentor Posts: 2,360 ✭✭✭✭✭

    It's not your fault. Featurescript searchability is still a challenge. All of mine have my last name "(Reese)" in the doc title if you want to search for them that way.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • MichaelPascoeMichaelPascoe Member Posts: 2,284 PRO
    edited May 7

    For those having difficulty finding custom features, please vote on this improvement request so we can have an easy place to store and sort features by creator, rating, popularity, and price: Feature Store - Improvement Request


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴
Sign In or Register to comment.