Jump to content
F.Sachin

changing existing set card to be arranged by ids

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

}

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...