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.
Pattern for feature (Triangle Tile)

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..
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
Why feature script versus patterns with variables?
Neil's Fill Pattern custom feature is close to what you want.
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.
The ones above are great for this, but my Grid Extrude is also a very simple way. Here's a video tour.
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
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.
@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.
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
Actually went ahead and added it. update to V15 for that!
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
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
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.
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
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 🔴