This page shows the process of adding or modifying environment variables on Windows.
Notes
- If you do not have administrator access on the Windows PC, you can only make changes to your "User variables".
- Consult with your IT department if you want to modify the "System variables"
Create or modify an environment variable
- Click on the Start Menu or Search on the Windows task bar.
- Enter "environment variables" in the serach box.
- Select "Edit the system environment variables" - should be the first on the list.
- In the 'System Properties > Advanced tab', select "Environment Variables..."
- Click "New" to create a new environment variable or select the variable and click "Edit" to modify an existing environment variable under either your "User variables" or the "System variables".
- After creating or modifying the environment variable, click "Apply" and then "OK" to have the change take effect.
Examples
- Adding the environment variable for a triad license server configuration. The license server information will be separated by a semi-colon ';' on Windows.
ANSYSLMD_LICENSE_FILE = 1055@licenseserver1;1055@licenseserver2;1055@licenseserver3
- Adding the Ansys Optics API path into the PYTHONPATH environment variable.