TCL: How to retrieve nodes from usermark (preview equivalence)

Kruger
Kruger Altair Community Member
edited March 2022 in Community Q&A

A portion of my code requires the "preview equivalence" feature:  *equivalence entity_type mark_id tolerance mode location numbering

for "mode," I am choosing to only save the nodes to the usermark.  My method to retrieve the nodes is not working?  Here is my code:

*createmarkpanel elements 1 "Select elements"
set face_elems [hm_getmark elements 1]
*equivalence elements 1 3.5 3 0 0
*createmark nodes 1 -1
set prev_equiv01 [hm_getmark nodes 1]
*entitysetcreate "saved nodes" nodes 1
*clearmark nodes 1
*clearmark elements 1

Best Answer

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited March 2022 Answer ✓

    you're looking for the command:

    set prev_equiv01 [hm_getusermark nodes]

    just add it after equivalence command.

     

    OBS.: *createmark nodes 1 -1  creates a selection of the latest/newest node created in your model. -2 takes the 2nd newest, and so on..

    image

Answers

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited March 2022 Answer ✓

    you're looking for the command:

    set prev_equiv01 [hm_getusermark nodes]

    just add it after equivalence command.

     

    OBS.: *createmark nodes 1 -1  creates a selection of the latest/newest node created in your model. -2 takes the 2nd newest, and so on..

    image

  • Kruger
    Kruger Altair Community Member
    edited March 2022

    Thank you very much.  That worked!