Get the points on the surface selected using TCL/Tk script

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

Hello,

 

How to get the point list on the boundary of a selected surface?

 

My goal is to get the distance between the points and set the element density accordingly.

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited May 2017

    Hi

    You can do like this

    *createmark points 1 'by surface' $surfID

    set PointList [hm_getmark points 1]

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

    Hi

    You can do like this

    *createmark points 1 'by surface' $surfID

    set PointList [hm_getmark points 1]

     

    Thank you for the reply. It worked for me. But  how to get the surface id of the surface currently selected? 

  • tinh
    tinh Altair Community Member
    edited May 2017

    Hi

    Use 

    set surfIDs [ hm_getmark surfs 1]

    *createmark points 1 'by surface' {*}$surfIDs

    set PointList [hm_getmark points 1]

    Or 

    *createmark points 1 'by surface on mark' 1

    set PointList [hm_getmark points 1]