Copying the multiple set of elements using TCL

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

I have set of components like

led_high_1

led_high_2

led_high_3

etc...

 

i have to  make a  duplicate set of components

 with name like

led_high_xxx_1

led_high_xxx_2

led_high_xxx_3

etc...

 

 i need a tcl script for this in hypermesh

Answers

  • tinh
    tinh Altair Community Member
    edited March 2017

    Hi,

    Try this code:

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2017

    Set of component in 'led' assembly 

    I have to duplicate components in same assembly like I told you for set of components.

     

    Give me the code exactly.

    I didn't understand  above code.

  • tinh
    tinh Altair Community Member
    edited March 2017

    What you need to do is:

    - make a loop, with each component name in 'led' assembly => use above code to create a new comp (led_high_xxx_..) and copy elems from old comp to new comp.

    - move all new comps to 'led' assembly