Get the list of points on the line using TCL script

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

I have a surface and I'm able to get the list of lines on it. But I'm not able to get the list of points on a line.

 set surfIDs [ hm_getmark surfs 1] *createmark lines 1 'by surface' {*}$surfIDs  set lineList [hm_getmark lines 1] puts 'Number of lines on the selected surface: [llength $lineList]'  #Trying to extract points using line id set lineId1 [lindex $lineList 0] *createmark points 1 'by id' $lineId1 set pointList [hm_getmark points 1] puts 'Number of points on the selected line: [llength $pointList]'

 

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited May 2017

    Hi

     use *createmark points 1 'by lines' $lineId1

    Or

    hm_getverticesfromedge $lineId1

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2017

    Thank you. It worked.