🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

scripting in simlab

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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?

Find more posts tagged with

Sort by:
1 - 23 of 231
    User: "Rahul Rajan_21763"
    New Altair Community Member
    Updated by Rahul Rajan_21763

    Try with Project : Record.PFA screenshot for same.

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

    User: "AlessioLibrandi"
    Altair Employee
    Updated by AlessioLibrandi

    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.

    User: "AlessioLibrandi"
    Altair Employee
    Updated by AlessioLibrandi

    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. 

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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?

     

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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 

     

     

    User: "Rahul Rajan_21763"
    New Altair Community Member
    Updated by Rahul Rajan_21763

    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

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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 

     

     

     

     

    User: "Rahul Rajan_21763"
    New Altair Community Member
    Updated by Rahul Rajan_21763

    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

    User: "AlessioLibrandi"
    Altair Employee
    Updated by AlessioLibrandi

    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

    User: "Skull"
    Altair Community Member
    Updated by Skull

    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?

    User: "AlessioLibrandi"
    Altair Employee
    Updated by AlessioLibrandi

    Sorry for the late answer,

     

    file have been uploaded again on this link:

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

    User: "Skull"
    Altair Community Member
    Updated by Skull

    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 ?

    User: "AlessioLibrandi"
    Altair Employee
    Updated by AlessioLibrandi

    Hi, no problem. The new Link is here:

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

     

    It will be active until June, 27th.

     

    User: "Skull"
    Altair Community Member
    Updated by Skull

    Hi, no problem. The new Link is here:

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

     

    It will be active until June, 27th.

     

    Thank For Sharing !!!

    User: "Merula_20758"
    Altair Community Member
    Updated by Merula_20758
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

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

    User: "AlessioLibrandi"
    Altair Employee
    Updated by AlessioLibrandi
    User: "bangdavi"
    Altair Community Member
    Updated by bangdavi

    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,

     

     

    User: "AlessioLibrandi"
    Altair Employee
    Updated by AlessioLibrandi

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

    User: "bangdavi"
    Altair Community Member
    Updated by bangdavi

    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>?

    User: "AlessioLibrandi"
    Altair Employee
    Updated by AlessioLibrandi

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

    User: "Sagar Motwani_20540"
    Altair Community Member
    Updated by Sagar Motwani_20540

    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 ?

    User: "AjayBorah"
    Altair Community Member
    Updated by AjayBorah

    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