🎉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

How to know the number of selected surfaces in tcl

User: "liangycc"
Altair Community Member
Updated by liangycc

Hi,

i want to know the precise number of selected surfaces.But i just find the command hm_count which does not support for 'selected'.

i have to know the precise number because i want to automesh these surfaces in next step.  

like this:
*createmark surfaces 1 1
*appendmark surfaces 1 'by face'
*interactiveremeshsurf 1 0.25 2 2 2 1 1

for {set i 0} {$i < $numberofsurface} {incr i} {

*set_meshfaceparams $i 2 2 0 0 1 0.5 1 1
*automesh 0 2 2

}

So could you tell me a good method?

Thank you very much!

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi,

    i want to know the precise number of selected surfaces.But i just find the command hm_count which does not support for 'selected'.

    i have to know the precise number because i want to automesh these surfaces in next step.  

    like this:
    *createmark surfaces 1 1
    *appendmark surfaces 1 'by face'

    set numberofsurface [hm_marklength surfs 1]
    *interactiveremeshsurf 1 0.25 2 2 2 1 1

    for {set i 0} {$i < $numberofsurface} {incr i} {

    *set_meshfaceparams $i 2 2 0 0 1 0.5 1 1
    *automesh 0 2 2

    }

    So could you tell me a good method?

    Thank you very much!

     

    Add the bold line.

    User: "liangycc"
    Altair Community Member
    OP
    Updated by liangycc

    Thank you very much!!