get id of line

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

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??

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited July 2016

    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'; } }

     

    <?xml version="1.0" encoding="UTF-8"?>surface_edges.png

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2016

    thank you Nguyen-dai