‣ Make countersink and counterbore on metric holes freely definable by user. ‣ Fixed the Naming of M1.6, M2, M2.5 and M3.5 ‣ Added constructor for custom enums from Enums to PropertyEnumeration ‣ Put definitions of cut-types (counterbore/countersink) for screwtypes into json-files for easy modification. ‣ Allow users to put its own definitions in json-files in [UserDir]/Mod/PartDesign/Resources/Hole ‣ Contains several examples of cut-type definition json-files that are propably not production-ready. This uses a local copy of nlohmann::json¹ to read json-files. __________ ¹ This is a very nice,header-only C++ library under the MIT License (https://github.com/nlohmann/json). I copied the single-file-version and the forward-declaration-header into …/PartDesign/App/ so no new dependencies arise.
24 lines
1003 B
JSON
24 lines
1003 B
JSON
{
|
|
"name": "DIN 7984",
|
|
"cut_type": "counterbore",
|
|
"thread_type": "metric",
|
|
"data": [
|
|
{ "thread": "M2", "diameter": 4.3, "depth": 1.6 },
|
|
{ "thread": "M2.5", "diameter": 5.0, "depth": 2.0 },
|
|
{ "thread": "M3", "diameter": 6.0, "depth": 2.4 },
|
|
{ "thread": "M3.5", "diameter": 6.5, "depth": 2.9 },
|
|
{ "thread": "M4", "diameter": 8.0, "depth": 3.2 },
|
|
{ "thread": "M5", "diameter": 10.0, "depth": 4.0 },
|
|
{ "thread": "M6", "diameter": 11.0, "depth": 4.7 },
|
|
{ "thread": "M8", "diameter": 15.0, "depth": 6.0 },
|
|
{ "thread": "M10", "diameter": 18.0, "depth": 7.0 },
|
|
{ "thread": "M12", "diameter": 20.0, "depth": 8.0 },
|
|
{ "thread": "M14", "diameter": 24.0, "depth": 9.0 },
|
|
{ "thread": "M16", "diameter": 26.0, "depth": 10.5 },
|
|
{ "thread": "M18", "diameter": 30.0, "depth": 11.5 },
|
|
{ "thread": "M20", "diameter": 33.0, "depth": 12.5 },
|
|
{ "thread": "M22", "diameter": 36.0, "depth": 13.5 },
|
|
{ "thread": "M24", "diameter": 40.0, "depth": 14.5 }
|
|
]
|
|
}
|