Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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_KempenAlex_Kempen Member Posts: 248 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!
CS Student at UT Dallas
Alex.Kempen@utdallas.edu
Check out my FeatureScripts here:



Comments

  • cameron_bluecameron_blue Member Posts: 2

    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?

  • david_lang457david_lang457 Member Posts: 87 ✭✭✭

    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

Sign In or Register to comment.