Comments (2)
Hi,
looking at this code for the first time in 5 years...
I think the intent was to have two sets of functions, the first set operates on the
family table and the other on the bolt table.
Where "M5" is the name of a complete family of bolts of different lengths (i.e. M5x10, M5x12, etc).
_get_screw_fam(n) therefore should use a bolt name, like M5x10 to get you to the property value from the table, whereas _get_fam(n) takes the family name, i.e. M5.
Are you sure this is a working line? It seems to miss an argument to search? Nonetheless, basically this is redefining _get_screw_fam(n) as _get_fam(n).
Does _get_nut_key("M5x10") work?
from nutsnbolts.
Hi, sorry it me so long to get back to you :(
Yes, _get_nut_key("M5x10") works! Now I understand screw_fam, thanks!
I was about to propose that _get_nut_key() uses _get_fam() instead of _get_screw_fam(), because the key size of an M5 nut doesn't really depend on the length of the screw. But then I realized that if you have the screw family in a variable (like screw = "M5x10";), you wouldn't be able to get the key size easily :)
Thanks for your help :)
from nutsnbolts.
Related Issues (14)
- Clearance on parallel nuttrap not functional :) HOT 1
- Fix M1 nut HOT 10
- M3 nut too small HOT 3
- nutcatch_parallel length should default on name HOT 2
- Confusion With Holes HOT 1
- Nuts HOT 2
- Best typo ever in comments HOT 1
- M10 hole_threaded makes too small hole (about M8 dimensions?) HOT 2
- Uh, GPL ? HOT 10
- Holes: modelling threads changes position HOT 3
- nutcatch_sidecut slot width clearance (clsl): what is it, is it even implemented? HOT 2
- pls help to confirm some size. HOT 1
- Add diameter for holes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nutsnbolts.