Update the .bat File
- Last UpdatedJan 23, 2023
- 1 minute read
To make Building Applications available in existing projects, the logic from the .bat files supplied with product can be modified or incorporated with existing .bat files.
Building Applications uses parameter files to define such items as Angle Display Format, Distance Display Format and Auto-Naming Functions. It is typical for these to be stored with a project and edited to be project specific.
For example, in a project called SAM the parameter files should be copied into the folder referred to as SAMDFLTS. It can be any folder, but would typically be called samdflts and stored in the project folder.
The evars.bat file could be updated with the following to setup the environment variable %SAMDFLTS%:
if not "%SAMDFLTS%"=="" goto samdfltsok
set SAMDFLTS=%1\project\samdflts
echo SAMDFLTS=%SAMDFLTS%
:samdfltsok
The following environment variables are used by the Building Applications:-
Building_design normally set to %pmllib%Building_Design\
common_tools normally set to %pmllib%Common_Tools\
aveva_language supported languages are English and French but other languages can be used as follows:-
-
Create new directories for their language under
%pmllib%\Building_Design\language
%pmllib%\Common_Tools\language
-
Copy files from the English sub-directory.
-
Translate the contents of the files to their language making sure that the translation remains on the same line and that the translation is not significantly longer than the original.
-
Translate the parameter file DES-PURPOSE and the parameter files beginning with GTYPE.