@ekinsb
Brian,
Seeing as how this is a recent post and I was in here searching on this very subject. I would like to tag on to this discussion.
I was thinking about expanding the gear creation capabilities in exactly the way you have described. But my ambitions go further. I created a set of tools for OpenSCAD to create gears. I started with the thinking that gears are always created in pairs and extended that concept to gear trains. So when creating a gear one could also create a compatible gear. And since a subsequent gear in a gear train would be along a shared shaft I added the ability to give a direction and length offset to the next gear in a train of gears. Ultimately, I had a mechanism to define an gear train in a specification. I also had a function that scanned the gear train specification and validated the gear pairs (or more in the case of planetary gears etc.) and output where there were problems and why.
I also had helper functions that allowed one to use different approaches to defining a gear. These helper functions originally were to aid in using the various different ways in which manufacturers specific their gears. They expanded to cover other things like creating a pair of spur gears given the distance between two shafts and the desired ratio etc.
The concept is that I have developed a knowledge about gears (more than one would expect an EE to have) that I would like for others to leverage. The example of designing spur gears to go between two shafts is but one of many use cases where a tool could solve the problem so that one does not need to understand in great detail how gears work.
And I would like these tools to act like all the other tools for parametric design. That one could go back and tweak the parameters and have the effects of the new parameters propagate through design.
My tools covered bevel gears, spiral gears, etc. And helper functions are even more useful for these types of gears. In fact, my dream is to understand and implement the tooth shapes for hypoid gears.
And Brian, I am thinking one can parameterize gear tooth profiles. There are several papers on describing the involute curve using beziers, b-splines or one of the other polynomial curves. These curves take fewer points and are actually more accurate than the piece-wise linear approach most often used. And they can be defined parametrically and not as a series of programmatically generated points of the piece-wise linear approach.
I am just learning the API and have no where near the experience that I had with OpenSCAD. Presently, I am not seeing clearly how one might create tools in the style of being part of a parametric design. All the examples I see of scripts are more like macros than things that become a part of the whole parametric design. Am I too ambitious? If not, do you have advice in where I might look for better examples? One of the great things about OpenSCAD was that there was (is) a large number of examples that I could look at and learn from. I haven't found that mother lode yet for the Fusion 360 API.
Thanks,
Steve