sets
how come I loop through each nodes in set list
Answers
-
This should work...
hm_createmark nodes 1 'by set' 'Your set name'
foreach node [hm_getmark nodes 1] {
*** perform activity
}
0 -
Hello mahes,
set $lst_nodes [hm_createmark nodes 'by set' setnameforeach node $lst_nodes {
puts $node
}0 -
Thanks Roshan and Livillyle
0 -
Altair Forum User said:
Hello mahes,
set $lst_nodes [hm_createmark nodes 'by set' setnameforeach 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' />
0 -
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
0 -
Hi
Use *createmark nodes 1 {*}$nodelist
You can get command explaination in reference help (help>altair help home>reference>hypermesh)
0 -
Hi,
Thanks tinh
0