getBodiesWithSubString

Overview

This utility is used to get the body names which matches the given substring.

Syntax

SubStringList=["Body1*"]
BodyNameList=simlab.getBodiesWithSubString("ModelName",SubStringList);

User Case

  • To delete the bodies which matches the given substring

Why we need this utility?

For symmetry models, we will break the bodies to perform analysis for half of the geometry. In this case, in scripting we may want to delete the other half geometry after breaking. In SimLab when we break a body, the body name of another half is appended with "_1". These bodies can be identified using this script utility and given as input for delete operation.

Utility Input/output

Sample