PartDesign Hole: read cut-types from json-files.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: PartDesign Hole: read cut-types from json-files.
My fault, it was indeed a perspective thing. I thought I was looking at the front and not at the back of the thread. I hadn't noticed it was cut in half.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
-
- Posts: 436
- Joined: Wed Sep 15, 2010 9:38 am
Re: PartDesign Hole: read cut-types from json-files.
There is a small error in the json files:
Gaël
OS: Ubuntu 18.04.5 LTS (i3/i3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 4ab3c95552b5b23227a90e62a3f613728068b0c3
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Code: Select all
Failed reading ‘/usr/share/freecad-daily/Mod/PartDesign/Resources/Hole/iso7046.json’ with: [json.exception.parse_error.101] parse error at line 8, column 5: syntax error while parsing array - unexpected '{'; expected ']'
OS: Ubuntu 18.04.5 LTS (i3/i3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 4ab3c95552b5b23227a90e62a3f613728068b0c3
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Re: PartDesign Hole: read cut-types from json-files.
There is a problem now. The json files are searched in ResourceDir/Mod/PartDesign/Resources/Hole/ and
UserAppDataDir/Mod/PartDesign/Resources/Hole/.
The later no longer¹ works, because the existence of a UserAppDataDir/Mod/PartDesign/ kills the PartDesign-workbench completely.
I would suggest moving this to AppDataDir/PartDesign/Hole/, or is another place better?
__________
¹ I think that this worked in the past.
UserAppDataDir/Mod/PartDesign/Resources/Hole/.
The later no longer¹ works, because the existence of a UserAppDataDir/Mod/PartDesign/ kills the PartDesign-workbench completely.
I would suggest moving this to AppDataDir/PartDesign/Hole/, or is another place better?
__________
¹ I think that this worked in the past.