Updated Spur Gear FeatureScript

Alex_Kempen
Alex_Kempen Member Posts: 260 EDU
edited March 2021 in FeatureScript
One FeatureScript I've used quite a bit is @NeilCooke's spur gear FeatureScript, which is always useful whenever I need to make custom gears. However, I've found that the editing logic can be a bit annoying, so I made a few modifications in order to make it more intelligent and easier to use. The Updated Spur Gear FeatureScript behaves as follows:
  1. Changing the number of teeth will update the pitch circle diameter, and vice versa (before, changing the number of teeth overrode the pitch).
  2. Changing the pitch of the gear will override either the pitch circle diameter or the tooth count, depending on which one you've last entered.
  3. If you enter a combination of a pitch and pitch circle diameter which don't evenly match a gear, a rounding dropdown and the option to update the pitch circle diameter will appear. Selecting Update pitch circle diameter will update the pitch circle diameter with the correct value (and cause these options to disappear); these options will also disappear if the solution becomes valid for some other reason.

I also reorganized the UI into two tabs in order to make it neater, and I added Remember Previous Value UI Hints to many of the options in order to make creating multiple gears of the same type easier.

You can find the updated version of this FeatureScript here. I hope you find it useful!
Software Developer at Epic Systems
FRC Design Mentor - Team 10553 Orange Overdrive


Comments