Setting the Temporary Directory
The temporary directory may be viewed or set using the Electronics Desktop user interface (UI), or from the command line.
To set the directory via the UI:
Navigate to Tools > Options > General Options. In the tree at the left side of the dialog box, expand the General branch and select Directories. Then, use the Temp field and Override check box to enter a desired directory path. Values set in this manner are written to the user_machine level configuration file for the temporary directory. If the Override check box is cleared, clicking OK changes the user_machine level setting for the temporary directory to an empty string. This enables settings from the next highest precedence configuration file. The file that provides the currently active temporary directory setting is shown under the Temp edit box.
To set the temporary directory from the command line, using the -batchoptions command line option. See: Running Ansys Electronics Desktop from a Command Line and -Batchoptions Command Line Examples.
The temporary directory may be configured with an installation default value, as well as a host-dependent default value, a host-independent user-specified value and a host-dependent user-specified value. Temporary directory settings are stored in different files from the other option settings. These files are located in the same directories as the configuration files for the other option settings. The following table shows the directories and files used to store temporary directory settings.
Config File |
Level Name |
File Name |
Windows Directory Path |
Linux Directory Path |
Host-dependent, user-specific temporary directory |
user_machine |
<hostname>.cfg |
%UserProfile%\Documents\Ansoft
|
$HOME/Ansoft
|
Host-independent, user-specific temporary directory |
user |
default.cfg |
||
Host-dependent, default temporary directory |
install_machine |
<hostname>.cfg |
<InstallationDirectory>\v<version>
|
<InstallationDirectory>/v<version>
|
Installation default temporary directory |
install |
default.cfg |
- <hostname> is the name of the computer on which the Electronics Desktop software is installed
- $HOME is the user's home directory on Linux
- <ApplicationName&Version> is the product name (without spaces) followed by the four-digit year of the version, a decimal point, and the minor release number (such as ElectronicsDesktop2024.2)
- %UserProfile% is a Windows variable that represents the currently active user's profile (for example, C:\Users\JohnDoe)
- <InstallationDirectory> is the root folder where the Electronics Desktop software is installed (typically, C:\Program Files\AnsysEM, on Windows, or /opt/AnsysEM, on Linux)
- <Version> is the last two digits of the product version's year followed by the minor release number, without a decimal point (such as 221)
As with other options, the settings in these files have precedence in the following sequence: user_machine (highest precedence), user, install_machine, install (lowest precedence). The installer creates the file at the "install" level (default.cfg). The first time you start and then exit the application, the file at the "user_machine" level is created (<hostname>.cfg). The other files are only created if you use the UpdateRegistry tool to specify an option at the "user" or "install_machine" level. If the temporary directory is set to an empty string in a configuration file, then that setting is ignored.