tcl to create sets

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

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

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi,

    try:

    *displaynone

    *createmark nodes 1 displayed

    *entitysetcreate YourSet nodes 1

    User: "Merula_20758"
    Altair Community Member
    Updated by Merula_20758

    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.