PartDesign Hole: read cut-types from json-files.

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
chrisb
Veteran
Posts: 53786
Joined: Tue Mar 17, 2015 9:14 am

Re: PartDesign Hole: read cut-types from json-files.

Post by chrisb »

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.
galou_breizh
Posts: 436
Joined: Wed Sep 15, 2010 9:38 am

Re: PartDesign Hole: read cut-types from json-files.

Post by galou_breizh »

There is a small error in the json files:

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 ']'
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)
rynn
Posts: 453
Joined: Tue Jul 31, 2018 7:00 am

Re: PartDesign Hole: read cut-types from json-files.

Post by rynn »

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.
rynn
Posts: 453
Joined: Tue Jul 31, 2018 7:00 am

Re: PartDesign Hole: read cut-types from json-files.

Post by rynn »

Post Reply