cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Translate the entire conversation x

Toolkit c++ reference selection

jussikoo
7-Bedrock

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. 

0 REPLIES 0
Announcements

Top Tags