get id of line
Altair Forum User
Altair Employee
Hello
I am trying to extract id of the line to set it afterwards for changing edge density
*createlistpanel surfaces 1 'Select first surface'
set arnod [hm_getlist surfaces 1 ];
set n1 [hm_getentityvalue surfaces [lindex $arnod 0] 'id' 0];
hm_getsurfaceedges $n1
So i have created above tcl but its not working its not showing any id ??
so have i done any mistake??
0
Answers
-
Here's my code:
*createlistpanel surfaces 1 'Select first surface' set surf_list [hm_getlist surfaces 1 ]; *clearlist surfaces 1; foreach sid $surf_list { puts 'Surf $sid:'; set edges_list [lindex [hm_getsurfaceedges $sid] 0] foreach id $edges_list { puts ' Edge: $id'; } }
0 -
thank you Nguyen-dai
0