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.
New feature: hexagonal pattern

I ran into multiple questions of people looking for hexagonal patterns on the forum.
There are great options at the moment with 'grid extrude' and 'fill pattern', but each embed the hex pattern in an existing function and cut off 'cells' at the edges.
For those looking to purely make a hex pattern, there are ways with linear pattern as well, but all of them require some multiple of patterns/transforms to complete.
So I figured this would be a nice project to maintain my FS coding skills.
So here goes!
@all featurescript wizards:
I copied and adapted the native linear pattern feature and chose to put a lot of the underlying logic and simple math in the "computeLinearPatternTransforms" function at the bottom.
the native feature nowadays uses a builtin computeLinearPatternTransforms that includes the logic for 'skipping instances' as I understand.
Is there another way to build this feature to get the 'skip instances' functionality back?
Comments
Oh sick! I just played with it a bit and it's nicely done.
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
Nice work! Ty for sharing.
The quickest way to keep from having to change how the edit logic and manipulator functions work, would be to just use an exact copy of the original feature, then pattern the second direction at 45deg. This will give you a hex pattern. Then just delete the parts that don't fit your zone.
Like this, except in FS:
https://cad.onshape.com/documents/42b61fbce002ee1c87ce57b0/w/23bc1cf5734e64946792d2b4/e/a4040ed6…
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴