🎉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

TCL SCRIPT

User: "Amith Anoop Kumar"
Altair Community Member
Updated by Amith Anoop Kumar

What is the command to show which elements belong to which component

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "Adriano Koga_20259"
    New Altair Community Member
    Accepted Answer
    Updated by Adriano Koga_20259

    for retrieving a list of elements contained into a component, you could use something like that:

    set comp_name "something"  ; #assign some name to a component

    *createmark elems 1 "by comp name" ${comp_name}  ; #selects the elements from the comp_name component and puts in mark #1
    set elems_list [hm_getmark elems 1]  ; #retrieves the list of elems selected in mark #1 and pass it to a list elems_list

    *clearmark comps 1 ; #clears selection on mark #1

    #...

    #do somehthing

    User: "Amith Anoop Kumar"
    Altair Community Member
    OP
    Updated by Amith Anoop Kumar

    for retrieving a list of elements contained into a component, you could use something like that:

    set comp_name "something"  ; #assign some name to a component

    *createmark elems 1 "by comp name" ${comp_name}  ; #selects the elements from the comp_name component and puts in mark #1
    set elems_list [hm_getmark elems 1]  ; #retrieves the list of elems selected in mark #1 and pass it to a list elems_list

    *clearmark comps 1 ; #clears selection on mark #1

    #...

    #do somehthing

    Sir this is like are we setting a component and we are retriving all elemenets of that component. What I want is I select a list of elems through *createmarkpanel elems 1 and hm_getmark elems option and I want to know which component is it part of. Please provide the required code

    User: "Amith Anoop Kumar"
    Altair Community Member
    OP
    Updated by Amith Anoop Kumar

    for retrieving a list of elements contained into a component, you could use something like that:

    set comp_name "something"  ; #assign some name to a component

    *createmark elems 1 "by comp name" ${comp_name}  ; #selects the elements from the comp_name component and puts in mark #1
    set elems_list [hm_getmark elems 1]  ; #retrieves the list of elems selected in mark #1 and pass it to a list elems_list

    *clearmark comps 1 ; #clears selection on mark #1

    #...

    #do somehthing

    It is like whatever component i select and delete it should be able to record and print.Hoping for a help at the earliest

    User: "Adriano Koga_20259"
    New Altair Community Member
    Updated by Adriano Koga_20259

    *createmarkpanel elems 1 "select your elements"

    set elems_list [hm_getmark elems 1]

    set comps_list [hm_getvalue elems user_ids=$elems_list dataname=component.name]

    foreach compo $comps_list {

    #do something

    }

     

     

    User: "Amith Anoop Kumar"
    Altair Community Member
    OP
    Updated by Amith Anoop Kumar

    *createmarkpanel elems 1 "select your elements"

    set elems_list [hm_getmark elems 1]

    set comps_list [hm_getvalue elems user_ids=$elems_list dataname=component.name]

    foreach compo $comps_list {

    #do something

    }

     

     

    Thanks a lot Sir.