getBodiesFromGroup
Overview
This utility is used for extracting the body names from groups. This can be further used as input for performing other operations.
Syntax
BodyNames = simlab.getBodiesFromGroup('GroupName')
Use Case
Below is a use case where GetBodiesFromGroup will be useful to make the script generic.
- To take the bodies one by one from a group and to perform same operations on it.
Why we need this utility?
This utility can be used for changing the bore inner diameter in all liner bodies. Since all liner bodies are in different axis, changing bore inner diameter cannot be performed for all bodies at a time. So, user has to get the liner bodies one by one and perform the operation.
Utility Input/output
Hint
Use for loop to traverse the bodies one by one from output variable.
Sample
Note: Sample Script