Mesh script

AlexanderP
AlexanderP Altair Community Member
edited October 2020 in Community Q&A

Hi all
I'm new in hypermesh and scripting and interested in creating a mesh using scripts. 
Is it possible? Are there any ready-made scripts?

thanks

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2019

    Hi you can use Batchmesher initially for automated mesh.

    Later you can go with tcl scripts

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.e9984c43625983082dc42fe6fd1b81b8.png

  • Pranav Hari
    Pranav Hari Altair Community Member
    edited October 2020

    Hi AlexanderP

     

    Check online HyperWorks help document and below shared documents to get started in scripting.

     

    https://community.altair.com/community?id=community_question&sys_id=b966ccf61b2bd0908017dc61ec4bcbfa

    Below resources will help you get started with tcl/tk programming. 

    https://www.tutorialspoint.com/tcl-tk/ 

    https://www.packtpub.com/networking-and-servers/tcltk-85-programming-cookbook

    https://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html

     

     

    Thanks

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited April 2019

    Hi all
    I'm new in hypermesh and scripting and interested in creating a mesh using scripts. 
    Is it possible? Are there any ready-made scripts?

    thanks

    Hi Alexandar,

     

    Hope you're doing good.

     

    I am interested in hypermesh scripting via tcl/tk, but i don't know from where i need to start.

     

    Initially one of my friend told me to learn the documentation in tcl official website. I had gone through the site and i didn't understand anything. Then I had tried via tutorial point website for online training and there the tutorial was looking like coding format, not in scripting format & that also failed for me.

     

    Finally when am going through altair forum site, i saw your first post similar to where am standing now. Can you please guide me, how to start learning this tcl/tk language interms of scripting?

     

    How you are learning this scripts?

     

    Experienced peoples were telling to learn tcl/tk in available resources, but they were not telling how we need to start from a scratch interms of scripting?. So can you please help me in this.

     

    Thanks in an advance.

     

    Regards,

     

    Saravanan

     

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited April 2019

    Why you need a script to make your mesh?

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited April 2019

    Hi Saravanan,

    A quick way to learn after learning TCL language is to do a simple operation in hypermesh say creation of 10 nodes manually, then have a look at the commands written to command.tcl in the working directory (mostly mydocuments). then run those commands in the command window. After that automate the process using loops and procedures.  

     

    Altair does organizes tcl and on-demand training , you can get in touch with your local Altair support team.