In File > Preferences, we have many useful options. In case of automation, preferences settings are not recorded in the script.
If we need to utilize the preferences option during automation, do the following
- All settings in the Preferences dialog will be stored in ‘SimLabSetting.ini’ file which is available in the following location - C:\Users\<user name>\.altair\SimLab_V2019.2\simlab. Once the settings are defined in preferences dialog, take a copy of ‘SimLabSetting.ini’ file and save it locally.
- Set the environment variable SET SL_USER_DEFINED_SYSTEM_SETTING_FILE=\... setting file location...\ SimLabSetting.ini in the batch file from which SimLab is called.
Once the above settings are done, execute the batch file, it will consider the preferences settings from the file defined in environment variable for automation.