Hi,
I'm trying to select the following face of the attached part (sample.sldprt):
The code I'm using (after selecting the correct face using Entity.Select4(false,selectData) is:
faceEntity.Select4(false, selectData);
double[] selectionPoints = (double[])selectionManager.GetSelectionPoint(1);
bool selected = modelDoc.Extension.SelectByID2("", "FACE", selectionPoints[0], selectionPoints[1], selectionPoints[2],false, 1, null, (int)swSelectOption_e.swSelectOptionDefault);
featureManager.InsertMoveFace(0, true, 0.03490658503989, 0.001);
When debugging it, I can see, that first Select4 selects the correct face.
But SelectByID2 (which is required to get InsertMoveFace working) no selects the inner cylinder of the part:
If I have no inner cylinder in the left part of the part (sample1.sldprt), the code works fine:
What may I change to get the correct Face selected by SelectByID2?
Alex
SolidworksApi macros