🎉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

HM Automation

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

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

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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.

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

    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

    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

    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.

     

     

    User: "Pandurang"
    Altair Community Member
    Updated by Pandurang

    @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]