🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Selection of surfaces

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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.

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "tinh"
    Altair Community Member
    Updated by tinh

    yes, you can use

    hm_measureshortestdistance2 to get closest surf to a coordinate

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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