Ansys Learning Forum › Forums › Discuss Simulation › 3D Design › How can I select all surfaces(Faces) that I made script? › Reply To: How can I select all surfaces(Faces) that I made script?
June 20, 2023 at 8:03 am
Ansys Employee
The format of the following command is incorrect:
selection = Selection.Create(FaceSelection.SelectAll())
The FaceSelection() function already creates a selection type, so just do:
selection = FaceSelection.SelectAll()
Also, for later use, you'll want to get the DesignBody or DesignFace from the CircularSurface() function:
circlebody = circle.CreatedBodies[0]
circleface = circle.CreatedBodies[0].Faces[0]
Â