FreeCAD: master 6d1b2922

Author Committer Branch Timestamp Parent
M G Berberich wwmayer master 2020-10-11 19:43:07 master e84fa25c
Changeset [PartDesign] Dynamic hole cut-types

‣ 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.
mod - src/App/PropertyStandard.cpp Diff File
mod - src/App/PropertyStandard.h Diff File
mod - src/Mod/PartDesign/App/FeatureHole.cpp Diff File
mod - src/Mod/PartDesign/App/FeatureHole.h Diff File
add - src/Mod/PartDesign/App/json.hpp Diff File
add - src/Mod/PartDesign/App/json_fwd.hpp Diff File
mod - src/Mod/PartDesign/CMakeLists.txt Diff File
add - src/Mod/PartDesign/Resources/Hole/din7984.json Diff File
add - src/Mod/PartDesign/Resources/Hole/iso10642.json Diff File
add - src/Mod/PartDesign/Resources/Hole/iso14583.json Diff File
add - src/Mod/PartDesign/Resources/Hole/iso14583part.json Diff File
add - src/Mod/PartDesign/Resources/Hole/iso4762.json Diff File
add - src/Mod/PartDesign/Resources/Hole/iso4762_7089.json Diff File