this patch changes Hole, so it reads cut-types for metric screws from json-files.
FIles are searched in ResourceDir/Mod/PartDesign/Resources/Hole and UserAppDataDir/Mod/PartDesign/Resources/Hole so users can add their own definitions.
I checked some examples into
https://github.com/berberic2/FreeCAD/tr ... urces/Hole
for DIN 7984, ISO 10642, ISO 14583 (fully and partial sunk), ISO 4762 and ISO 4762 with ISO 7089 washers.
Fileformat:
Code: Select all
{
"name": "ISO 4762",
"cut_type": "counterbore",
"thread_type": "metric",
"data": [
{ "thread": "M1.6", "diameter": 3.5, "depth": 1.7 },
{ "thread": "M2", "diameter": 4.3, "depth": 2.1 },
…
]
}
Code: Select all
{
"name": "ISO 10642",
"cut_type": "countersink",
"thread_type": "metric",
"angle": 90,
"data": [
{ "thread": "M3", "diameter": 6.7 },
{ "thread": "M4", "diameter": 9.0 },
…
]
}
branch: feature/hole-counter-dynamic