I feel like this might/should exist, but I can't find it.
Is there a program that allows for replacement screw cap generation by simply entering a diameter, depth, thread gap, and thread pitch?
Would be really nice to have something like that.
I the meantime, maybe I'll consider printing tpu corks/ stoppers with mid diameter equal to vessel opening diameter.
You can download .step files for most things sold by McMaster-carr. F360 let’s you import directly using the product number- this includes pretty much any kind of bolt or screw you want.
Other software you might have to do so manually, but yeah.
Why do work when there’s a library right there begging to be used. (And nope, you don’t have to buy from them…. Even if that’s why they do it.)
Their files are wonderful. One thing to remember is you can reference/import the file and then project features onto sketches- things like mounting holes.
(For example if you’re slapping a psu into the design,)
Don't know about specifically for your use case of only caps, but all of the major parametric modelling programs have custom thread generating functions. Including FreeCad, if you want to pay $0 for it.
If you aren't fussed about the end result looking fancy, you can just make a cylinder and whack a threaded hole partially through it in about three steps in FreeCad, and just print the result.
The term you are looking for is "parametric". You might be able to find a design you need through the many 3D printing file sites using that term. FreeCAD and Fusion360 are open used but another is OpenSCAD if you are more programming savvy than modeling savvy. There are plenty of recipes for threads in there to make your relatively simple design request here.
Tons of good and free options, you just gotta pick which one looks easiest for you.
Can look at those thank you. Looks like Tinkercad actually does have some threading options and that's closer to my comfort zone. Appreciate all the great comments here. The more I look into these options, the more I think for the routine, shoot I lost the cap for these gummy vitamins or paint bottle type situations, the more I like my tpu stopper idea for simplicity. There are more variables than I realized on getting a cap to fit it appears.
NUT JOB | Nut, Bolt, Washer and Threaded Rod Factory? (You'll need OpenSCAD if Thingiverse's customizer is broken again.) Not sure how many parameters it offers, but the ones you mention should be among them.