Some Helpful Featurescripts

Over the past few days I’ve written a few helpful featurescripts. Currently I have

  • Shaft Generator (Thunderhex, 1/2" hex, 3/8" hex, churro, and churro lite) with up-to-face option

  • Spacer generator (round, 1/2" hex, and 3/8" hex)

  • Fillet face. Lets you choose a face and a perpendicular edge, then fillets all parallel edges connected to that face- one click gusset filleting!

Here’s the link. I expect to add more soon- let me know if you have any requests.

48 Likes

I look forward to reading through these and comparing them with my own implementations. Well done!

1 Like

Good stuff! There are definitely some notable improvements to these over some of the stuff I’ve seen out there.

1 Like

Onshape and the feature script boys.

We aren’t an Onshape team, but I admire the work you guys do for the ones that are. Keep up the good work! :+1:

33 Likes

Send help.

8 Likes

:pleading_face:

1 Like

I’ve added a slightly-prettier (and slightly faster?) version of Marcus’s chain path generator, based on his work of course. It also adds a script that lets you make chains in-place instead of making them and translating them, which has the bonus effect of measuring the distance for you.

Link in the OP should work.

12 Likes

Does anyone know of a feature scripts that creates a hole pattern in tube faces for you? Im guessing someone has made this by now, would be a time saver.

4 Likes

Does anyone know of any sprocket generating featurescripts similar to the pulley script?

1 Like

I haven’t actually gotten around to using it yet-keep remembering about it after I’ve already done the linear pattern-but there’s one in the MKCad featurescripts doc:

https://cad.onshape.com/documents/4506675fee630d7eab89d419/v/2afaab0a8981a4cfb39a972c/e/466924050661caab10e8b394

2 Likes

Yeh ive played around with this. Looking for something that specifically adds holes to manually drawn tubes. We like to extrude all ours tubes from a master sketch and this feature script kills the work flow.

2 Likes

Yeah - just tried it out lol & it seems difficult to use in a part studio for an entire subsystem like a drivetrain >_[

2 Likes

Not a featurescript, but configurable vex sprockets.

Search “Vex Sprockets (Configurable) - FRC 1745” when inserting. I will move this to MKCad eventually…

2 Likes

You’ll need to describe your workflow in a little more depth. What types of tubes are you adding holes to? What is the hole pattern?

My Custom Length Extrusion featurescript allows you to add some types of hole patterns in the ‘Other’ tab. It works only for Rectangular Tube, Angle, C-Channel, and Rectangular Bar. https://cad.onshape.com/documents/18b35cfcf2c6cf5668830f90/w/15216769574e8a81c923173f/e/e764ff883b9544b302bc6710. But this is not a featurescript just to add holes patterns to parts you make. That part of it could theoretically be pulled out separately.

1 Like

We Typically draw all the tubes in a sub assm in a single master sketch and extrude them from that single sketch, this means that we can go back and change all dimensions for the sub assm in one place.

I’ve been looking around in the configurable tub featurescript and im going to try and extract the hole pattern part of it!

3 Likes

Thanks, this is good to know. However, I was mainly looking for something to make large >10" sprockets for turrets and such.

2 Likes

This is what I used to create the configurable sprocket files. http://www.gearseds.com/files/design_draw_sprocket_5.pdf

Alternatively, here is a direct link to the configurable sprocket document. It includes all the math from above. You can make a copy of one of the part studios and create whatever size sprocket you want. https://cad.onshape.com/documents/2530db2e553cef7eb5219903/w/b243b2798f53663c5e9c69c6/e/6ce545d8b76640b69cc203ea?configuration=List_eGmQW1WRlwBH7E%3DDefault

3 Likes

By request of @jjsessa I’ve added a script to convert an extruded block of any size into a hole-patterned tube. Link is here. (“Tube Converter”)

23 Likes

Absolute life saver, especially on tubes that are slanted which would typically require its own sketch + extrude to put holes into.

turns this mess of sketches and features for holes into a single feature per tube:

3 Likes

no way.

4 Likes