Jump to content
Sign in to follow this  
Sonu

tcl to create sets

Recommended Posts

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

Share this post


Link to post
Share on other sites

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:

*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.

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...