🎉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

Struggle with placing element in set with tcl sript

Hi everyone 

 

I've got some struggle using the hypermesh script to get some elements in a set for postprocessing these elements. In fact i'm abble to get the elements i want in the mark 1 but then it's impossible to get these elements in the set. The amounth of elements is quite big but i'm abble to place these elements manually in the set but it dont work with the function :

 

 *setvalue sets id=4 ids=elems={ [hm_getmark elems 1] }

 

Does someone know some specificity about this function ?

 

Thanks for the help

 

Find more posts tagged with

Sort by:
1 - 6 of 61
    tinhUser: "tinh"
    Altair Community Member
    Updated by tinh

    hi,

    Try replacing { } by ' '

    hi 

     

    well that doesn't work neither ..

     

    When I select the 0 under the line of code this is writen in a pop up :

     

    while executing
    '*setvalue sets id=4 ids=elems='[hm_getmark elems 1]''
        ('uplevel' body line 1)
        invoked from within
    'uplevel #0 {*setvalue sets id=4 ids=elems='[hm_getmark elems 1]'}'
        invoked from within
    'interp eval $::tkcon::OPT(exec) $args'
        (procedure '::tkcon::EvalSlave' line 2)
        invoked from within
    'EvalAttached $cmd'
     

    I don't know what that says i can't understand this kind of language 

    tinhUser: "tinh"
    Altair Community Member
    Updated by tinh

    are you sure syntax is ... ids=elems='[... ?

    or just ...ids='[...  ?

    I tried many things and i'm very struggleling with the syntax but i think that the amounth of elements is way too big for being transfered from a mark to a set ( i talking about 20 000 element) so i begin to think that the problem is linked to the use of a mark for this amounth of data. I'm thinking about using a list or a table for these data but then i don't know how to feed the *setvalue with that kind of variable.

     

    Thanks for your help tinh 

    tinhUser: "tinh"
    Altair Community Member
    Updated by tinh

    the syntax must be

    *setvalue sets id=4 ids='elems [hm_getmark elems 1]'

     

    if it is failed, try {i prefer this way}

    *entitysetupdate nameofset elems 1

    Man thank you so much ! The *entityupdate works !

     

    I've been trying for two days with this single line of command haha