DEFINITION: Portable - Means ALL program data are stored inside single directory.
Test your FreeCAD settings: use in Py Console:
Code: Select all
FreeCAD.ConfigGet("UserHomePath")
FreeCAD.ConfigGet("UserAppData")
FreeCAD.ConfigGet("UserParameter")
FreeCAD.ConfigGet("SystemParameter")
1. Run different versions of FC on the same machine
2. Have a completely portable version on a USB Disk
// NOT YET IMPLEMENTED 3. Have the same Addons and Plugins repository for multiple compatible versions of FreeCad on the same machine / USB-disk
Solution by wmayer and sgorgan:
FreeCad.bat
Code: Select all
set CURRENTDIR=%cd%
set FREECAD_USER_HOME=%CURRENTDIR%
start bin\FreeCAD.exe -u FreeCAD/user1.cfg -s FreeCAD/system1.cfg --write-log
There will be made a folder "FreeCAD", containing
AddonManager (folder)
Macro (folder)
Mod (folder)
user.cfg
system.cfg
For testing purpose it is possible to modify this file in parameters -u and -s :
if the name is changed - it is possible to have multiple files of settings and use the with several versions of the bat file.
example:
FreeCAD1.bat -> start bin\FreeCAD.exe -u FreeCAD/user1.cfg -s FreeCAD/system1.cfg --write-log
FreeCAD2.bat -> start bin\FreeCAD.exe -u FreeCAD/user2.cfg -s FreeCAD/system2.cfg --write-log
...............
FreeCAD_N.bat -> start bin\FreeCAD.exe -u FreeCAD/user_N.cfg -s FreeCAD/system_N.cfg --write-log
And by putting several versions of FC in the same folder
%currentDir%/FC_0.18
%currentDir%/FC_0.19_pre
etc. - it is possible to start different versions of FC making use of the same Macro, Mod, and parts Library folders.
Besides! From the parts_library macro - possible to use only the macro and make your own parts for it.
#########
The "TODO:" left over and being actually a feature request is to optionally include a partsLibrary folder into current project folder.
The reuse of some details from the library - seems to be easier, then copying them again and again by use of conventional copy-paste.
With respect.
Addition: Portability for MacOS by Crisb:
chrisb wrote: ↑Tue Mar 30, 2021 7:27 am.... [/qote]
https://forum.freecadweb.org/viewtopic. ... 30#p492417