Please tell me how to select the face of a part that is saved in a variable.
Selected face about saved to variable
object [] vFace = swEdge.GetTwoAdjacentFaces2 ();
Face2 swFace = (Face2) vFace [0];
How now to select this face to create a sketch on it?
swEnt2[i].Select4(True, null);
First parameter should be True
But you also need to call ClearSelection2 before your loop to deselect existing element
For better performance look at: Select any SOLIDWORKS objects in a batch using API