Hypermesh duplicating and rename components (Dyna)

John Busuttil
John Busuttil Altair Community Member
edited October 2020 in Community Q&A

I need to generate about 400 duplicated Dyna componets and increment their Part names as well. Is this possible? Maybe as a TCP script?

Once I have these new componets (SID & MAT are common) I can then move/create a single beam element into each of them.

 

Many thanks.

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited October 2020

    Do you want duplicate also for component contents (mesh) ? Or juste component definition?

     

  • tinh
    tinh Altair Community Member
    edited October 2020

    Hi,

    Yes, ofcourse it is possible. But you should move beam into each part at same time of creation

    like this:

    *createmarkpanel elems 1 "Select beams:"

    foreach BeamId [hm_getmark elems 1] {

         set PartName [hm_getincrementalname comps part]

         *collectorcreateonly comps $PartName "" [expr round(rand()*63)+1]

         *createmark elems 1 $BeamId

         *movemark elems 1 $PartName

    }

    *clearmark elems 1