‣ 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.
17 lines
585 B
JSON
17 lines
585 B
JSON
{
|
|
"name": "ISO 14583",
|
|
"cut_type": "counterbore",
|
|
"thread_type": "metric",
|
|
"data": [
|
|
{ "thread": "M2", "diameter": 4.4, "depth": 2.0 },
|
|
{ "thread": "M2.5", "diameter": 5.4, "depth": 2.5 },
|
|
{ "thread": "M3", "diameter": 6.0, "depth": 2.8 },
|
|
{ "thread": "M3.5", "diameter": 7.6, "depth": 3.0 },
|
|
{ "thread": "M4", "diameter": 8.6, "depth": 3.5 },
|
|
{ "thread": "M5", "diameter": 10.1, "depth": 4.1 },
|
|
{ "thread": "M6", "diameter": 12.6, "depth": 5.0 },
|
|
{ "thread": "M8", "diameter": 16.6, "depth": 6.6 },
|
|
{ "thread": "M10", "diameter": 20.8, "depth": 8.1 }
|
|
]
|
|
}
|