scripting in simlab

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello All,

 

Are there any scripting language that can be utilized in simlab, in order to automate the meshing process?

 

Besides, does simlab creates a command file such as .cmf file like hypermesh?

Tagged:

Answers

  • Rahul Rajan_21763
    Rahul Rajan_21763 New Altair Community Member
    edited February 2017

    Try with Project : Record.PFA screenshot for same.

    <?xml version="1.0" encoding="UTF-8"?>Record.JPG

  • AlessioLibrandi
    AlessioLibrandi
    Altair Employee
    edited February 2017

    Hello All,

     

    Are there any scripting language that can be utilized in simlab, in order to automate the meshing process?

     

    Besides, does simlab creates a command file such as .cmf file like hypermesh?

     

    The languages used by Sl are Javascript and Python.

    After starting the recording process, you are asked which language you want to use.

    While recording the process, please select groups of entities so that you can re-run the process on other models using the same groups (and body) names.

    Check the section SCRIPTING in the SimLab Help for more information.

  • AlessioLibrandi
    AlessioLibrandi
    Altair Employee
    edited April 2017

    FYI: in Altair Connect, in the Download Documentation section, you can download SimLab tutorials for SL 2017 including Automation Tutorials for the script recording into Python and JavaScript. 

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited April 2017

    FYI: in Altair Connect, in the Download Documentation section, you can download SimLab tutorials for SL 2017 including Automation Tutorials for the script recording into Python and JavaScript. 

     

    Dear Alessio,

     

    Thank you for your support. I tryed to find SL 2017 deocument in Altair connect but, there is tutorials for SL 14 and older versions. In other words, I could not find the tutorial that you suggested.

     

    Can you describe how to find that document?

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited April 2017

    Hello All, 

     

    Has there been any changes in the Inspect Tab in Simlab 2017 as compared to Simlab 14.1 Version. The tabs to calculate Distance Radius Angle and Volume are not visible. 

    Please Help 

     

    Regards

    Rishabh 

     

     

  • Rahul Rajan_21763
    Rahul Rajan_21763 New Altair Community Member
    edited April 2017

    It is same in both version. PFA screenshot.Also you could activate new measurement tool via preference setting for SimLab 2017.

    <?xml version="1.0" encoding="UTF-8"?>Inspect 14.1.JPG

    <?xml version="1.0" encoding="UTF-8"?>Inspect 2017.JPG

    <?xml version="1.0" encoding="UTF-8"?>Measurement tool.JPG

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited April 2017

    Hello,

     

    Thanks for sharing the screen shot for both versions. I enabled the tool measurement and is very helpful. However I still dont have those 4 tabs. My tabs start from section properties. Please Help.

    Also I want to run some examples of of python scripts for simlab. I found an option to activate python tab. Please can you mention how to run the python script in Simlab 

     

    Regards

    Rishabh 

     

     

     

     

  • Rahul Rajan_21763
    Rahul Rajan_21763 New Altair Community Member
    edited April 2017

    Use Project : Play: Auto to run your python scripts.Also please share screenshot of the inspect panel & Simlab version with updates.

    <?xml version="1.0" encoding="UTF-8"?>Project play.JPG

  • AlessioLibrandi
    AlessioLibrandi
    Altair Employee
    edited May 2017

    Hi all,

    New tutorials for Python/JavaScript Scripting have been created and will be added to Altair Connect in the next weeks.

    In the meanwhile, you can download the tutorials on this link (active until July 4th 2017)

    https://securefiletransfer.altair.de/link/HpoKa9oYmuRRdMIljEyvhO  - JUST TYPE IN YOUR EMAIL TO AUTENTICATE

  • Skull
    Skull Altair Community Member
    edited August 2017

    Hi all,

    New tutorials for Python/JavaScript Scripting have been created and will be added to Altair Connect in the next weeks.

    In the meanwhile, you can download the tutorials on this link (active until July 4th 2017)

    https://securefiletransfer.altair.de/link/HpoKa9oYmuRRdMIljEyvhO  - JUST TYPE IN YOUR EMAIL TO AUTENTICATE

     

    Can you upload the tutorials again?

  • AlessioLibrandi
    AlessioLibrandi
    Altair Employee
    edited September 2017

    Sorry for the late answer,

     

    file have been uploaded again on this link:

    https://securefiletransfer.altair.de/link/PUIciIzcrBKNqVbDRR4DP9 

  • Skull
    Skull Altair Community Member
    edited April 2018

    Sorry for the late answer,

     

    file have been uploaded again on this link:

    https://securefiletransfer.altair.de/link/PUIciIzcrBKNqVbDRR4DP9 

     

    Sorry, I missed it again. Can you please upload it again. 

     

    Also, are these different from what we have in the help section of Simlab 14.1 ?

  • AlessioLibrandi
    AlessioLibrandi
    Altair Employee
    edited April 2018

    Hi, no problem. The new Link is here:

    https://securefiletransfer.altair.de/link/EQVsTdA5dRMo7ydcS6YuKH 

     

    It will be active until June, 27th.

     

  • Skull
    Skull Altair Community Member
    edited June 2018

    Hi, no problem. The new Link is here:

    https://securefiletransfer.altair.de/link/EQVsTdA5dRMo7ydcS6YuKH 

     

    It will be active until June, 27th.

     

    Thank For Sharing !!!

  • Merula_20758
    Merula_20758 Altair Community Member
    edited June 2018
  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2018

    @Allesio Librandi Can you please share the new tutorials link for Python/Java scripting for SImlab 2017

  • AlessioLibrandi
    AlessioLibrandi
    Altair Employee
    edited January 2019
  • bangdavi
    bangdavi Altair Community Member
    edited July 2019

    Dear Alessio Librandi

    Thank for all your responses

    I know you update the link 3 times, but could you please re-upload/update

    new tutorial link(forPython/Java scripting for SImlab)?

     

    sincerely,

     

     

  • AlessioLibrandi
    AlessioLibrandi
    Altair Employee
    edited July 2019

    Hi, the Automation Tutorials are available in the download area of Altair Connect (in the section Documentation)

  • bangdavi
    bangdavi Altair Community Member
    edited July 2019

    thanks for responding.

    I been look through all download area of Altair Connect

    but it is hard to find the exact location 

     

    could you please specify the directory of the tutorial?

    for example, documentation>User Manuals>?

  • AlessioLibrandi
    AlessioLibrandi
    Altair Employee
    edited July 2019

    For Version 2019, go to Documentation>Totorial and you'll find SimLab Automation Tutorials

  • Sagar Motwani_20540
    Sagar Motwani_20540 Altair Community Member
    edited July 2019

    Is there any way to get documentation for scripting in .sls file too, like what we have in SimLab help for Python and JS ?

    Or list of APIs used in .sls scripting by SimLab ?

  • AjayBorah
    AjayBorah Altair Community Member
    edited October 2019

    Hi All,

    I am preparing a script for an assembly FE modeling and i want to add pause and play button within the script so as to perform manual operation and than again switching to the script.

     

    I have got some example from tutorial like below

     

    1. SimLabUtility.CommentMessagePopUp('Check Aspect Ratio (< 20) quality for Tri element. If failed element present, clean up and continue.');..This is an comment msg pop up 

     

    2.bStatus = True
    msgBox = simlab.pauseprocess('Do group transfer. Incase of any failure, please do manual cleanup.\n Click \'Yes\' to continue the process \n or click \'No\' to stop the script execution.',title='SimLab',Button1='Yes',Button2='No')
    if msgBox.status == False:
        bStatus = False

    #if user click 'Yes' continue the script.
    if bStatus == True:

     

    But i am unable to frame those into my script.

     

    Any help will be more appreciated..

     

    Thanks