changing existing set card to be arranged by ids

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

Hello,

 

I have a input file from optistruct for a composite material structure, which has 200+ sets. They are written in terms of element ranges and element ids . I want to process it in matlab. Is there any method to change the set card to be defined only by element id's. This will make my life easy to process all the data. 

 

Thanks

SACHIN

Answers

  • tinh
    tinh Altair Community Member
    edited September 2016

    Hi

    it needs a tcl like this

     

    proc ::p_ChangeSets {{SetList {}}} {

        if {![llength $SetList]} {

            *createmarkpanel sets 1 'Select sets:'

            set SetList [hm_getmark sets 1]

            if {![llength $SetList]} {return}

            *clearmark sets 1

        }

        foreach SetId $SetList {

            *createmark elems 1 'by sets' $SetId

            *entitysetupdate [hm_getentityvalue sets $SetId name 1 -byid] elems 1

        }

        *clearmark elems 1

    }

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2017

    Thanks Tinh.

    A follow up question on a similar issue. Is it possible to define the element set by picking enclosed geometry automatically. I have partitioned the geometry and I want to assign the elements coming inside each partition inside a set. Is it possible to automate this process so that manual assigning can be avoid when the geometry is remeshed.

     

    Regards,

    SACHIN

  • tinh
    tinh Altair Community Member
    edited May 2017

    Yes, it is possible. But it needs more effort.

    Could you show your geometries?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2017

     

    I cannot share the geometry here. Is it possible to send it personally to you.

     

    Regards,

    SACHIN