PipeCAD
PipeCAD copied to clipboard
New system variables for PipeCAD
Hello Shing, Please, can you add new system variables into PipeCAD and add them into evars.bat:
SET PIPECAD_HELP_PATH=%~dp0\docs
echo PipeCAD Help Folder: %PIPECAD_HELP_PATH%
SET PIPECAD_MENU_PATH=%~dp0\uic
echo PipeCAD Menus Folder: %PIPECAD_MENU_PATH%
SET PIPECAD_SETTINGS_PATH=%~dp0\settings
echo PipeCAD Settings Folder: %PIPECAD_SETTINGS_PATH%
In this case will be possible to link this variables to a network shared folder for common access by different designers. Also, currently it will be useful to link these variables to GutHub local repo to keep current development process during upgrade of PipeCAD by newer version.
Hello Roman,
I think add them to PipeCAD.bat is better, evars.bat is generated by setup.
What do you think?
Hello Shing, No preference for me, so PipeCAD.bat is also suitable place.
Okay.
Hello Shing, Please can you correct code in PipeCAD to use variable %PIPECAD_MENU_PATH% and %PIPECAD_SETTINGS_PATH% for setup menu file and settings file. Currently, path to uic files menu is fixed inside PipeCAD and doesn't allow to setup of using different uic menu files.
OK, I forget to modify the code for these environment variable. I will fix it.
Hello Shing, Please, can you add also new variable for translation files:
SET PIPECAD_TRANSLATIONS_PATH=%~dp0\translations
echo PipeCAD Translations Folder: %PIPECAD_TRANSLATIONS_PATH%.
Also, please can you modify mechanism of loading languages for changing translation of PipeCAD. I think will be better if code will collect all translation files which will be located in %PIPECAD_TRANSLATIONS_PATH% and prepare list of available translation based on it. In this case if new language file will be added to translation folder, PipeCAD will automatically show it in the list of languages w/out needs to update code inside PipeCAD to add new translation.