-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New unit request: Pitch for screw threads #654
Comments
Hi and thanks for reaching out. I think this is the kind of unit that fall outside the 80/20 rule - we want a library that covers most people's needs with not too many quantities and units. There are so many variations of "X per Y" units that the library would grow very big in binary size if we included them all. Very narrow or application specific units should rather be defined per application. There is some limited ability to reuse Units.NET infrastructure for custom quantities and units. You can map unit enums and unit abbreviations: UnitAbbreviationsCache.Default.MapUnitToAbbreviation(MyQuantityUnit.MyUnit1, "myUnitAbbreviation1");
Assert.Equal(MyQuantityUnit.MyUnit1, UnitParser.Default.Parse<MyQuantityUnit>("myUnitAbbreviation1")); But parsing, constructing and converting quantities is still work in progress in #588 so you may be interested in subscribing to that thread for updates. |
Not that I would want to (insert colorful expression here) but wouldn't the same arguments that I made for #646 apply here as well?
|
@lipchev Fair points, maybe I was a bit too quick to disregard it as not common enough. |
If I read the wiki right, a screw is defined by two values; diameter and pitch. I believe diameter can be represented by
|
@BernhardJosef Do you have any thoughts on my last comment? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm developping measurement software for screw thread measurement. I need a unit for pitch.
The pitch is measured in millimeters or inches per single turn [mm] or [in] in Europe; in US Turns Per Inch [TPI] is used (https://en.wikipedia.org/wiki/Unified_Thread_Standard).
Especially in Germany [Zoll] or ["] is used as a synonym for [in].
The text was updated successfully, but these errors were encountered: