HM Automation

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

Hi,

I am writing script in hypermesh tcl command to create 3D meshing. for these i not understand  what the numbers mention here (8,0).

it is working in HM_13   and not in 14

*solidmap_prepare_usrdataptr 'SOURCE' 8 
*solid_prepare_entitylst elements 0 

 

Let me help to solve the issue.

 

Thanks,

C.Jude Antro

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2017

    Hi Jude,

    For  *solidmap_prepare_usrdataptr 'SOURCE' option is a flag that indicate different option for solid mapping. Based on nodes or lines or surface or elements selected for solid mapping this value is calculated.

     

    <?xml version="1.0" encoding="UTF-8"?>bits.PNG

     

    For *solid_prepare_entitylst 0 has to be kept and it is reserved for future use.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2017

    Hi George,

    Thanks for your reply,

     

    I have one more clarification, i have to select the outer most element in a selected component how can we select it through TCL script.

    I tried to get by element id but the number are not in order if i renumber also not work, how can i choose the outer element.

     

    Thanks

    C.Jude Antro

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited November 2017

    Hi George,

    Thanks for your reply,

     

    I have one more clarification, i have to select the outer most element in a selected component how can we select it through TCL script.

    I tried to get by element id but the number are not in order if i renumber also not work, how can i choose the outer element.

     

    You can't do that selection by elem ID.

    Here's my method:

    • Select 3D elems => Extract 2D faces (new component ^faces)
    • Select 2D faces => elems => by adjacent => remove ^faces from selection => Got elems (see screenshot)

    Selection_102.png.c512c9ca49cef19a90f4bcfa534f4fc8.png

    Based on my method, you can write a TCL script for that.

     

     

  • Pandurang
    Pandurang Altair Community Member
    edited April 2018

    @jude Antro

     

    please try this:

     

    *createmarkpanel comps 1 ' Select the component '
    *findfaces comps 1;

    *createmark elems 1 'by comp name' ^faces;
    eval *createmark elems 2 [hm_getmark elems 1]
    *appendmark elems 1 'by adjacent'
    *markdifference elems 1 elems 2

    set outer_elems [hm_getmark elems 1]