Selection of surfaces

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

Hello all,

 

Is it possible to select some surfaces by defining their coordinates or sth else in tcl script?

 

Note: I can make it by createnarkpanel command but i dont want to select surfaces in GUI. So, I want to learn if I can handle it without mauel selection by mouse.

Answers

  • tinh
    tinh Altair Community Member
    edited January 2017

    yes, you can use

    hm_measureshortestdistance2 to get closest surf to a coordinate

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2017

    Dear Tinh,

     

    Thank you for your reply. I have tryed your suggestion but I still have problem on selecting desired surfaces. As illustarated in the picture below;

     

    Coordinated of center nodes is wrtten in 'hm_measureshortestdistance2' command as, hm_measureshortestdistance1 6310.316 -437 1212.594 surfaces 1 0 0

     

    However, in order to check if selection of washer surface is completed hm_getmark surfaces 1 is written. But nothing appeared on the screen. Unfortunately, surface is not selected.

     

    Do you have any suggestion to achieve this problem?

    <?xml version="1.0" encoding="UTF-8"?>surface.PNG

  • tinh
    tinh Altair Community Member
    edited January 2017

    Please read hypermesh reference help (menu help)

    the command will return several values including closest surf id then you just need to use *createmark surfs to select it