Skip to main content
1-Visitor
June 28, 2005
Question

Selection Buffer

  • June 28, 2005
  • 0 replies
  • 789 views
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