Create macro for Automesh(F12) with "elem" selection entities

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

Hi everyone,

 

When I use Automesh(F12) to create FE modeling, I always have to switch b/w Elem and Surf.

I already checked *.cmf command but could not find the default setting for this to make macro.

 

I would like to create 2 shortcutkey: 'E' >> Automesh with element(remesh). 'S' >> Automesh for surface(new mesh).

 

Since I am newbies at TCL, hope any one can help on this TCL macro.

Thanks a lot!

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • tinh
    tinh Altair Community Member
    edited August 2014

    Hello

    as in hm12:

    proc press_E {} {

      hm_setcollector automesh 18 elems

      hm_pushpanel automesh

    }

    proc press_S {} {

      hm_setcollector automesh 18 surfs

      hm_pushpanel automesh

    }

  • alpha_21885
    alpha_21885 Altair Community Member
    edited August 2014

    Hi Tin. Appreciate your help but your command does not valid on HM12. 'hm_setcollector automesh 18 elems'

    Anyway, it works on Hm11 and I already creates Switch Key b/w Surf/Elems for AutoMesh. No need to 2 shortcut keys!

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2014

    Hi,

     

    at V12 you have to take item 19, e.g. 'hm_setcollector automesh 19 elems', but still a very good hint tinh !

     

     

    Regards,

    Mario

  • alpha_21885
    alpha_21885 Altair Community Member
    edited August 2014

    Really appreciate Mario for your help. It works with 19 but how do you know this number. If I move to HM13, 14 or HM10, HM9, what is number for this?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2014

    Hi,

     

    for me it was trial and error, since hm_setcollector is a undocumented feature.

    You can try it very fast inside the tcl command window.

     

    For release V13 it seems to be the same.

     

    Regards,

    Mario

  • tinh
    tinh Altair Community Member
    edited August 2014

    Heeeee

    The number is sometimes changed a bit although same version. I don't know why

    my hm12 is 18

     

    to get it exactly => you can dump the panel by

    hm_dumppanel automesh

    and looking for the number fore (ENTITY_COLLECTOR)

     

    from hm12, panels seem respond better. with hm11 i usually have to set timer when customize panels

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited July 2015

    thanks for all

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2015

    Hello,

     

    I found code some code like this you can use for any panels selection

     

        hm_pushpanel 'project'

        set id [hm_getcolnumber {project} 1 ]

        hm_setcollector 'project' $id 'comps'

     

    Thanks and Regards

    P.Varthamanan

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.