getGroupsWithSubString
Overview
This utility is used to get the group names which matches the given substring.
Syntax
SubString=["test*"]
OutputGroupNameList=simlab.getGroupsWithSubString("GroupType", SubString);
User Case
Below are some of the use cases where getGroupsWithSubString will be useful to make the script generic.
- To Apply loads and boundary conditions using groups
- To create body from face groups
Why we need this utility?
In automation script, when we use createGroupsOfConnectedEntities utility, it will split the parent group into multiple groups. To apply loads on the entities of these groups, we need access these groups first. For that, we use the getGroupsWithSubString utility and obtain all the groups in the script.
Utility Input/output

Sample
Note: Sample Script