Script how to re-mesh by face F12 [keybord sript]]

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

Hi,

 

I am doing re-meshing of elements. steps followed are as below.

1. F12

2. select a element

3. select elements by face

4. mesh (quads)

5. return

 

I am looking for a script to do it. to save repetitive time.

Tagged:

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited August 2020

    You have the file 'command.tcl' already!

     

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited August 2020

    as mentioned above, you could use the contents of command.tcl file as a very nice reference for your script.

    Do one time the operation in HM manually and you will get the main commands/APIs. Use the non-interactive option in automesh.

    Then after having the main commands adapt and check the HM Reference Guides (Help) for these commands

     

    1. select a element

    *createmark elems 1 some_number

    or 

    *createmarkpanel elems 1 'select 1 element'

     

    2. select elements by face

    *appendmark (check the help)

     

    3. mesh (quads)

    run the commands based on the command.tcl for meshing with your options (quad only, element size,,,....)