How to use “Preferences” option in automation?

Santhoshkumar
Santhoshkumar
Altair Employee
edited October 2020 in Community Q&A

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

  1. 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.
  2. 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.

Tagged:

Answers

  • Santhoshkumar
    Santhoshkumar
    Altair Employee
    edited October 2020

    Hi,

    Your understanding is correct. SimLabSetting.ini file should be called while launching SimLab. As you mentioned, if you call from SimLab batch file, it should work fine.

     

    Thanks,

    Santhoshkumar