Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

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?

mjmiddle
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]

 

[bingo_chatbox]