Start a topic
With the exception of Windchill, The PTC Community is on read-only status until April 6 in preparation for moving our community to a new platform. Learn more here
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here

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