getCylindricalFaceAttributes
Overview
This utility is used for extracting the axis points and radius of cylinders. These axis points and radius will be used to define plane, cylinder, box etc.
Syntax
AxPt1, AxPt2, Rad = simlab.getCylindricalFaceAttributes('GroupName')
(or)
AxPt1, AxPt2, Rad=simlab.getCylindricalFaceAttributes('ModelName', FaceID)
User Case
- To break the symmetry models and use half portion for analysis. Refer Fig-1
- To break the engine assembly and use one cylinder cut section for analysis. Refer Fig-2
Why we need this utility?
For above case, we will use region mesh control with plane body break option to break the bodies, but when we recorded this operation using Project > Record, the defined plane points will be hardcoded in script. when we use this script for different models, it will fail due to difference in model coordinates. In order to overcome this, we can make use of this utility to extract the cylinder attributes from groups and utilize it for any kind of plane definition.
Utility Input/output

Hint
After extracting the axis points, convert it as a string by adding "str" and remove
the () using ".strip" and store it in a variable for ease of use.