Select faces in a TCL script

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

Hi everybody,

I'm programming a macro which attempts to build a bearing. I try to drag some elements in TCL but don't know how. If i create faces and drag them in hypermesh and copy the command.cmf lines to the script, macro selects the ID faces. I can't do it in this way because if I change the geometry probably ID faces may change too.

 

Anyone know what to do? :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20'>

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited February 2016

    Hi

    hm always select faces by ID, so you must do by that way <img class=" data-emoticon="true" src="src" />/emoticons/default_angry.png' title=':angry:'>

    just after create faces, get its ID by : set face_id [hm_latestentityid surfs 0]