getSetsWithSubString
Overview
This utility is used to get the sets names which matches the given substring.
Syntax
SubStringList = ["Set*"]
SetNameList = simlab.getSetsWithSubString("SetType", SubStringList);
SetType | Description |
---|---|
Node | To get node set names |
ShellElement | To get shell element set names |
SolidElementFace | To get solid element face set names |
SolidElement | To get solid element set names |
RBE | To get RBE set names |
MemberaneLayer | To get membrane layer set names |
ASET | To get degrees of freedom set names |
User Case
Below are some of the use cases where getSetsWithSubString will be useful to make the script generic.
- To perform post processing operations using the entities of set
- To Apply loads, contacts and boundary conditions using the sets and its entities
Why we need this utility?
In automation script, the entities are stored in sets with different names. These sets can be collected by specifying a sub string name. Based on set type it returns the set and then user can fetch the entities from set for further operations.
Utility Input/output

Sample
Note: Sample Script