🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

From set of elements to collector

Hi, I am able to create collector with name like set of elements name, which includes that element from that specify set. Could You help me to automatize that process. I have lots of entity sets and it would be great to run some tcl macro which will do job for me. I tried to looked up in command.tcl but when i use organize function it shows elements number for each elements set - that I cant use for tcl macro.

 

Best regards

Jakub

Find more posts tagged with

Sort by:
1 - 3 of 31
    tinhUser: "tinh"
    Altair Community Member
    Updated by tinh

    Hi. 

     

    *createmarkpanel sets 1 'Select sets:'

    foreach setname [hm_getvalue sets mark=1 dataname=name] {

         if {![hm_entityinfo exist comps $setname -byname]} {

              *collectorcreateonly comps $setname '' 1

         }

         *createmark elems 1 'by set name' $setname

         if {[hm_marklength elems 1]} {

              *movemark elems 1 $setname

         }

    }

    jakub.ziontekUser: "jakub.ziontek"
    Altair Community Member
    OP
    Updated by jakub.ziontek

    thank You, but i have some issue, when I want to pick all sets, some of them becomes empty, when I use it one by one that issue not happening

    jakub.ziontekUser: "jakub.ziontek"
    Altair Community Member
    OP
    Updated by jakub.ziontek

    i checked that I have duplicated elements with different elements set - I need that, and than tcl macro overwrite one of them unfortunately