changing existing set card to be arranged by ids


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
Find more posts tagged with


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


I cannot share the geometry here. Is it possible to send it personally to you.
Regards,
SACHIN
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
}