Script to ceate element sets from components

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

Hello,

 

Is there any script to create element sets by selecting components? 

The hm file I am working has more than 100 components so I was trying to automate the process and create a script, but so far I have not been successful.
Can anyone help me?

Thanks.

 

N.

Find more posts tagged with

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

    Hi,

    example script

    *createmarkpanel comps 1 'Select comps'

    foreach CompID [hm_getmark comps 1] {

         *createmark elems 1 'by comp id' $CompID

         *entitysetcreate SET_ELEMS_$CompID elems 1

    }

    *clearmark comps 1

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

    Thanks tinh

    It was exactly what I was trying to do.

    Regards,

    N.