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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. 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