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