Please enable JavaScript to view this site.

Navigation: 9.KOMPAS-3D Settings > Storage of system settings

Definition of paths to system files and folders. KOMPAS-3D Environment Variables

Scroll

Paths to system files and folders are defined during the load time of the KOMPAS-3D and stored until the end of the session as environment variable values of KOMPAS-3D. Names and purpose of the variables are the same as for keys of [Directories] and [Files] sectors of the file KOMPAS.ini (see table). Sections and keys of the KOMPAS.ini file).

In the below paths to system files and folders, the following Windows environment variables and parameters are used:


Variable/Parameter

Description


%APPDATA%

C:\Users\AppData\Roaming — folder containing information about applications for the current user


%PROGRAMDATA%

C:\ProgramData —  a folder containing information about applications, shared among all computer users


[version]

version number of the system


[folder name]

the name of the system folder matching a variable name

The order of definition of the paths to system files and folders

1.Searching for the KOMPAS.ini file, which contains paths to the system file (folder). If the KOMPAS.ini file exists and contains the required path, then this path becomes the value of the corresponding environment variable. KOMPAS.ini file is described in detail in the section KOMPAS.ini File.

2.If the KOMPAS.ini file is missing or does not contain the required path, the path is determined as follows:

2.1. For KitConfig variable:
KitConfig=%APPDATA%\Ascon\Kompas-3D\[version]\Kompas.kit.config
If the folder %APPDATA%\Ascon\Kompas-3D\[version] does not exist, then it will be created during the saving of the configuration file.

2.2. For the variable DefaultKitConfig:
DefaultKitConfig=%PROGRAMDATA%\Ascon\Kompas-3D\[version]\base.kit.config

2.3. For variables Sys, Libs, Apps, Utils, Templates, Profiles:

the existence is verified for the folder
%APPDATA%\Ascon\Kompas-3D \[version]\[folder name].
If it exists, then
[variable name]=%APPDATA%\Ascon\Kompas-3D\[version]\[folder name], for example:
Sys=C:\Users\miller\AppData\Roaming\ASCON\Kompas-3D\23\Sys.

If the specified folder does not exist, then the existence is verified for the folder
%PROGRAMDATA%\Ascon\Kompas-3D\[version]\[folder name].
If it exists, then
[variable name]=%PROGRAMDATA%\Ascon\Kompas-3D\[version]\[folder name], for example:
Sys=C:\ProgramData\ASCON\Kompas-3D\23\Sys.

If the specified folder does not exist, then verified is the existence of the folder [folder name] relative to the path of the file KOMPAS.exe (i.e., in the folder containing the file KOMPAS.exe).
If it exists, then
[variable name]=[the path to the folder containing the folder with KOMPAS.exe]\[folder name], for example:
Sys=C:\Program Files\ASCON\KOMPAS-3D v23\Sys.

If the specified folder does not exist, then the value of the variable becomes the path to the folder with the file KOMPAS.exe, for example,
Sys=C:\Program Files\ASCON\KOMPAS-3D v23\Bin.

2.4. For the variable MultilineTemplates:
The order of definition of the path is the same, as for the Templates variable.

2.5. For SheetMetal variable:

the existence is verified for the folder
%APPDATA%\Ascon\Kompas-3D\[version]\Sys\[folder name].
If it exists, then
[variable name]=%APPDATA%\Ascon\Kompas-3D\[version]\Sys\[folder name].

If the specified folder does not exist, then the existence is verified for the folder
%PROGRAMDATA%\Ascon\Kompas-3D\[version]\Sys\[folder name].
If it exists, then
[variable name]=%PROGRAMDATA%\Ascon\Kompas-3D\[version]\Sys\[folder name].

If the specified folder does not exist, then the existence is verified for the folder \Sys\ [folder name] along the path relative to the file KOMPAS.exe (i.e. In the folder containing the folder with the file KOMPAS.exe).
If it exists, then
[variable name]=..\Sys\[folder name].

If the specified folder does not exist, then the value of variable becomes the path to the folder with the file Kompas.exe.

2.6. For the variable Temp:
Temp=%Temp%
If the environment variable Temp (TMP) is defined for the current user, then this variable is used, for example:
Temp="%UserProfile%\Local Settings\Temp".
Otherwise, the system variable Temp (TMP) is used, for example, Temp=%SystemRoot%\Temp.

2.7. For the variables Work and PrintDevCfg:
Work=\"%UserProfile%\My Documents\",
PrintDevCfg=\"%UserProfile%\My Documents\".

2.8. For the variable Pictures:

the existence is verified for the folder \Samples\Surfaces\Maps along the path relative to the file KOMPAS.exe (i.e. in the folder containing the folder with the file KOMPAS.exe).
If it exists, then
Pictures=..\Samples\Surfaces\Maps.

If the specified folder does not exist, then
Pictures=\"%UserProfile%\My Documents\".

2.9. For the variable ExprCollection:
ExprCollection=%APPDATA%\Ascon\Kompas-3D\[version]\collection.law.

2.10. For the variable GeneralTolerance:

the existence is verified for the folder
%APPDATA%\Ascon\Kompas-3D\[version]\Sys.
If it exists, then
GeneralTolerance=%APPDATA%\Ascon\Kompas-3D\[version]\Sys\gen_tol.ttl.

If the specified folder does not exist, then the existence is verified for the folder
%PROGRAMDATA%\Ascon\Kompas-3D\[version]\Sys.
If it exists, then
GeneralTolerance=%PROGRAMDATA%\Ascon\Kompas-3D\[version]\Sys\gen_tol.ttl.

If the specified folder does not exist, then verified is the existence of the folder \Sys along the path relative to the file KOMPAS.exe (i.e. in the folder containing the folder with the file KOMPAS.exe).
If it exists, then
GeneralTolerance=..\Sys\gen_tol.ttl.

If the specified folder does not exist, then it is assumed that the file gen_tol.ttl is located in the same folder as the file Kompas.exe, for example:
Sys=C:\Program Files\ASCON\KOMPAS-3D v23\Bin\gen_tol.ttl.

Note that in the absence of the file KOMPAS.ini, a file of unspecified maximum deviations can have only the default name – gen_tol.ttl. If it is required to make the deviations file be named differently, then for indication of its name and location use KOMPAS.ini.

 

© ASCON-Design systems, LLC (Russia), 2024. All rights reserved.