- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying my hand at creating a custom script. I am using the Spurgear as my base because all I want to do is add some functionality to it, and also get it working with inches and not cm.
I added a few more user inputs, for more control on the gear generation. What I wanted to do was have some of the inputs udate based on other inputs changing.
For example, I added an input for the Outside diam, which changes based on number of teeth and or Diametral Pitch. This value is auto calulated and filled in at first start from the default values, but then can be modified if what is wanted is something other than a standard gear.
If the user changes the Number Of Teeth, I would like the Outside Diam to get re calculated and updated.
I belive this would be implimented in the Validator section of code, but I cant seem to find info on updating the user interface other than when it is initially created.
My hopes is, when I get this working, is to add many options for creating custom gears, with the users input of any number of things like backlash, modified tooth thickness, non standard pitch diam, etc.
Any ideas on how to have the dialog update based on changes, before the user clicks "ok".
And for a bonus, but this will be later after its working, is to have ot preview the gear before ok is presses....or at least preview a sketch.
Anyways, my main issue is trying to get the UI to update before ok is pressed.
Any ideas?
Solved! Go to Solution.