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.


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

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

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:


Send help.



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.


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.


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

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:

1 Like

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.

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

Not a featurescript, but configurable vex sprockets.

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

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. 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.

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!

1 Like

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

This is what I used to create the configurable sprocket files.

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.

1 Like

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”)


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:

1 Like

no way.

1 Like