Translate node at 90 degree

Jouher_20929
Jouher_20929 Altair Community Member
edited October 2020 in Community Q&A

Help me to translate white circled node at an angle of 90 degree to other two nodes using tcl sript.

Actually my requirement is to translate black circled node  to red position using tcl. but vector selection is a constraint.

 

 

 image.png.540e8602ceabd16d7ce022f2b9886587.png

Tagged:

Answers

  • Pandurang
    Pandurang Altair Community Member
    edited April 2018

    1. create vector user end nodes : *vectorcreate_twonode node1 node2

    2. get the normal of blue element : hm_getelementnormal

    3. get cross product of the two : ::hwat::math::VectorCrossProduct

    4 translate node :  *translatemark