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.
Updated Spur Gear FeatureScript
Alex_Kempen
Member Posts: 248 EDU
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:
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!
- Changing the number of teeth will update the pitch circle diameter, and vice versa (before, changing the number of teeth overrode the pitch).
- 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.
- 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!
CS Student at UT Dallas
Alex.Kempen@utdallas.edu
Check out my FeatureScripts here:
2
Comments
Hi, when I try to access the gear featurescript through your link it comes to the error "Can't open tab. The tab does not exist in this document workspace". Could you please add it back or something?
Try this link:
https://cad.onshape.com/documents/5742c8cde4b06c68b362d748/v/1db29081376c095cf10e2a3d/e/c72760543a0d4412e72f6d38
Thanks for this feature, I was trying to drive it with variables and it seems to do odd things.
It changes the number of teeth, but does not recalculate the pitch circle diameter. This means that it's generating some odd tooth shapes, but doesn't show any change to the module
I even tried setting the module to a variable and it doesn't notice that change either (for the purpose of recalculating the pitch diameter)
Also, as an enhancement request, please add a checkbox that displays a 'clearance circle', i.e. a circle that contains the tips of the teeth