Copy component element to new component

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

How could I create a new component by copying all the elements from another previously defined component using tcl commands ? All the while keeping the original component as it is.

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited March 2017

    Try this code:

     *createentity comps cardimage=HM_COMP name=NewComp hm_createmark elems 1 'by comp name' 'OldComp' *copymark elements 1 'NewComp'

     

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

    @Q.Nguyen-Dai : Thank you. This worked perfectly.