adrianschlatter / threadlib

thread library for OpenSCAD
BSD 3-Clause "New" or "Revised" License
351 stars 34 forks source link

Tool to create thread specs?? #70

Closed mconsidine closed 2 years ago

mconsidine commented 2 years ago

Hi, I'm new to this library, so apologies if I have overlooked this answer.

I'm wondering if there is a bit of code already written to take specs for a custom thread (e.g. M28.5x0.6) and convert it to a table that can be used "on the fly", that is, without rebuilding tables that ship?

I used the calculator found here https://www.omnicalculator.com/construction/thread to get virtually all the data in the tables listed for metric data (18 of the 19 columns). Yet it looks like that info is used to calc an OpenSCAD-friendly table. I'm trying to figure out how to do this as a one-off.

Thoughts? UPDATE: I have since found a thread calculator https://www.omnicalculator.com/construction/thread?c=USD&v=TolGradeExt:1!!l,TolPosExt:15!!l,TolGradeInt:1!!l,TolPosInt:0!!l,extIntOption:3,TolGradePDiaExt:1!!l,TolGradePDiaInt:1.32!!l,P:0.6!!l,d:28.5!mm that gives me what I need. Inputted into a spreadsheet, I can then kick out the table needed in OpenSCAD. Although at the moment I'm having issues defining my own thread ...

TIA, mconsidine `` M28.5x0.6 is used for astronomy filters, fwiw, and here's the info I calculated, in case anyone is interested ISO Metric profile External (bolt thread) Internal (nut thread) Basic mm Major Dia d=D Pitch Dia d2=D2 Minor Dia d3 Minor Dia D1 Pitch Dia d2=D2 Major Dia d=D
Size Designation Simple Desig. Pitch Class max min max min max min Class min max min max min max Tap Drill 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

28.5 M28.5x0.6 M28.5x0.6 0.6 6g 28.48 28.354 28.09 27.986 27.87 27.66 6H 27.85 28.01 28.11 28.246 28.5 28.65`

mconsidine commented 2 years ago

This calculate https://www.omnicalculator.com/construction/thread?c=USD&v=TolGradeExt:1!!l,TolPosExt:15!!l,TolGradeInt:1!!l,TolPosInt:0!!l,extIntOption:3,TolGradePDiaExt:1!!l,TolGradePDiaInt:1.32!!l,P:0.6!!l,d:28.5!mm gives me that data I need to put into a spreadsheet and generate the table code...