Toolkit c++ reference selection
Hi, I'm trying to build sample app using PTC sample code as reference. Is it possible and can someone help how to select reference surfaces for skethed extrusion.
Selection:
pfcSelectionOptions_ptr dirSelopts = pfcSelectionOptions::Create("surface, datum");
dirSelopts->SetMaxNumSels(2);
pfcSelections_ptr dirSels = Session->Select(dirSelopts);
Is this done correctly? How can I use selections here:
localElem.CreateSelectionElem(PRO_E_STD_SEC_PLANE, 3, curModel, 1, 4, newElems);
localElem.CreateSelectionElem(PRO_E_STD_SEC_PLANE_ORIENT_REF, 3, curModel, 1, 2, newElems);
Or is it this simple at all? I'm using Creo 12, but I do not think it matters in this case.

