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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Selection Buffer

gdevienne
1-Newbie

Selection Buffer

Hi all,
has anyone ever got ProSelbufferClear() and ProSelbufferSelectionAdd() working?

I'm trying automatically to select a component in the model tree, but these functions return me only PRO_TK_CANT_ACCESS error.

I'm working with Proe/Wildfire2.0 M130.

here is my code :

status = ProAsmcomppathMdlGet ( &comp_path, &mdl);

status = ProMdlToModelitem ( mdl, &mdl_itm);
status = ProSelectionAlloc ( &comp_path, &mdl_itm, &selection);
status = ProSelectionDisplay ( selection);
status = ProSelbufferClear ();
status = ProSelbufferSelectionAdd (selection);
status = ProSelectionFree (&selection);


Gaël
0 REPLIES 0
Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags