1 Reply Latest reply on Jan 8, 2014 2:36 PM by Andrew Wilford

    How do I select a face of a feature?

    Andrew Wilford

      I have a boss-extrude feature and I need to select a specific face of the feature. I am able to enumerate the feature's faces and I have the face I need in an IFace2 pointer. I tried the following to select the face but it doesn't work:


      ISelectionMgr* selectionManager = NULL;


      ISelectData* selectData = NULL;


      VARIANT_BOOL retVal = 0;

      SWEntity* entity = (SWEntity*)face;

      entity->Select4(VARIANT_FALSE, selectData, &retVal);


      Can anyone comment on whether this should work or if there is a better way to select the face using the C++ API.