Arch: implement new get_param functions

Additionally 2 Arch_Window bugs were fixed:
* If the W1 value was changed the box tracker was not repositioned relative to the cursor.
* The WindowColor was not applied because of a typo in the code. De current default color is quite dark BTW.

Note that all dimensional values that were not really defaults, but just the last entered values, have been removed from preferences-archdefaults.ui. As a result the layout looks a bit strange. That will be improved in a next PR.
This commit is contained in:
Roy-043
2024-01-09 14:03:55 +01:00
committed by Yorik van Havre
parent 4e53dcc7ac
commit be03a9cebf
34 changed files with 597 additions and 946 deletions

View File

@@ -141,9 +141,7 @@ def checkShapeFileLibrary():
FreeCAD.Console.PrintError(translate("Arch","Error: Unable to download from:")+" "+url+"\n")
return False
b = u.read()
p = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Macro")
fp = p.GetString("MacroPath",os.path.join(FreeCAD.getUserAppDataDir(),"Macros"))
fp = os.path.join(fp,"shapefile.py")
fp = os.path.join(FreeCAD.getUserMacroDir(True),"shapefile.py")
f = pythonopen(fp,"wb")
f.write(b)
f.close()