🎉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

sets

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

how come I loop through each nodes in set list

 

Find more posts tagged with

Sort by:
1 - 7 of 71
    User: "Roshan Shiveshwar"
    Altair Community Member
    Updated by Roshan Shiveshwar

    This should work...

     

    hm_createmark nodes 1 'by set'  'Your set name'

     

    foreach node [hm_getmark nodes 1] {

       *** perform activity

     

    }

     

     

     

    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    Hello mahes,


    set $lst_nodes [hm_createmark nodes 'by set' setname

    foreach node $lst_nodes {
    puts $node
    }

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

    Thanks Roshan and Livillyle

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hello mahes,


    set $lst_nodes [hm_createmark nodes 'by set' setname

    foreach node $lst_nodes {
    puts $node
    }

     

    Hi, hm_createmark return an emptied string

    so to get lst_nodes you have to use hm_getmark;)/emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />

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

    Hi tinh,

    Thanks tinh.

    Is using createmark is the reason i cant access the nodes in the list?

    And can u pls suggest me some url that will be useful for learning about basic things about hm commands like how they wrk ,wat it returns 

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    Use *createmark nodes 1 {*}$nodelist

    You can get command explaination in reference help (help>altair help home>reference>hypermesh)

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

    Hi,

    Thanks tinh