tcl to create sets

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

Hi 

i need little help.i need a tcl to create sets from the temp nodes displayed on the screen

my code uses a line to finally add nodes, *nodemarkaddtempmark 1

now, i need these nodes to form a set.how can i store them in a set through tcl?

 

thank you in advance

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited June 2017

    Hi,

    try:

    *displaynone

    *createmark nodes 1 displayed

    *entitysetcreate YourSet nodes 1

  • Merula_20758
    Merula_20758 Altair Community Member
    edited April 2019

    Just a note ... this command is deprecated I guess, it still works but a problem occured when dealing with large amoung of ids ...to assign to a set..

     

    this way it works!

    :blink:/emoticons/default_blink.png' title=':blink:' />

     *createmark elems 2 'by collector' 1 *entitysetcreate ELEMS elems 2 *setvalue sets id=2 cardimage='SET_ELEM' *setvalue sets id=2 STATUS=0 5422=LIST set ids [hm_getmark elems 2] eval *setvalue sets id=2 ids={elems $ids}

    the step with set ids ... is critical.