How to check if user settings are properly imported?

Alrik Mabire
Alrik Mabire Altair Community Member
edited September 12 in Community Q&A

Hello,

I am running a SimLab automation with a batch script.
I import a specific user settings file with the SL_USER_DEFINED_SYSTEM_SETTING_FILE environment variable. However, I have issues with my script and I think it is related to the user settings I defined.

Is there a way to check the values of the user settings used within the SimLab script? I need to check if the .ini file I defined in the batch script is properly read and used by SimLab.

At the moment, my script is giving different results if I delete my SimLab user folder (under C:/user/.../SimLab) before running my batch file which would indicate an issue with the settings used by simlab.


Thank you,

Answers

  • Marc_21384
    Marc_21384
    Altair Employee
    edited September 11

    Hello Alrik,

    Can you share your script and setting file to better understand what you're trying to achieve? You should be able to change the settings on your preferences by default. When you delete the user folder you're erasing the settings you created.

    Thanks,

    Marc

  • Alrik Mabire
    Alrik Mabire Altair Community Member
    edited September 12

    Hello Marc,

    The script is confidential and it is way too complex to share just to solve this issue.

    My .bat file can be simplified as:

    set SL_USER_DEFINED_SYSTEM_SETTING_FILE={path to my .ini file}
    call simlab.bat -auto myscript.py -nographics

    If I delete my SimLab folder (containing my .ini file) in my user folder before running the script, I get a different mesh result compared to running the script with an existing SimLab folder.
    This would mean that setting the environment variable doesn't override the local .ini file of my user folder?

    To make sure, I would like to find a way to test what settings are used by SimLab during my script, if it is possible. Do you know if there is a way to do that?

    Thank you,
    Alrik