PipeCAD icon indicating copy to clipboard operation
PipeCAD copied to clipboard

New system variables for PipeCAD

Open rompik opened this issue 2 years ago • 6 comments

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.

rompik avatar Sep 06 '22 13:09 rompik

Hello Roman,

I think add them to PipeCAD.bat is better, evars.bat is generated by setup.

What do you think?

eryar avatar Sep 06 '22 23:09 eryar

Hello Shing, No preference for me, so PipeCAD.bat is also suitable place.

rompik avatar Sep 07 '22 09:09 rompik

Okay.

eryar avatar Sep 07 '22 10:09 eryar

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.

rompik avatar Nov 08 '22 13:11 rompik

OK, I forget to modify the code for these environment variable. I will fix it.

eryar avatar Nov 09 '22 23:11 eryar

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.

rompik avatar Dec 02 '22 10:12 rompik