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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

ProSelect Behavior

pwilliams-3
11-Garnet

ProSelect Behavior

When I call ProSelect() the user is not able to drag a box around
features to select. Is this the correct behavior or should I be coding
something different?



pro_error = ProSelect("membfeat", -1, NULL, &pro_selFuncs, NULL, NULL,
&pro_aSel, &nSelSize);



Patrick Williams | Sr. Application Engineer | CAM Systems | Steelcase
Inc. | 616.698.4078







3 REPLIES 3

I also found the solution to this question thanks to Feliks Veysman.



Hello all,

Patrick,

You need to set up selection environment, which is a fifth argument to
ProSelect.

ProSelectionEnvOption env_options[] = { {PRO_SELECT_BY_BOX_ALLOWED,

1},} //whatever else you needed

ProSelectionEnv sel_env;

err = ProSelectionEnvAlloc( env_options, 3, &sel_env ); err = ProSelect(
prompt, -1, NULL, &sel_func, sel_env, NULL, &pro_aSel, &nSelSize); HIH.

Feliks.





Patrick Williams | Sr. Application Engineer | CAM Systems | Steelcase
Inc. | 616.698.4078






> You need to set up selection environment, which is a fifth
> argument to ProSelect.
>
> ProSelectionEnvOption env[] ... PRO_SELECT_BY_BOX_ALLOWED, ...

I've not had much consistent success with this since WF,
although it is the only way to do it. Sometimes it works
and (same session) sometimes it does not.

There's a note in the docs implying that it doesn't work for
release 18 and higher "for external users". Perhaps it's a
euphemism for "doesn't work, don't use it anymore".

Perhaps it only works in certain modes, such as selecting
many draft entities in a drawing.


Marc

All,

I have a mfg model in the current window. This mfg model has a part
assembled to it as a fixture. This part has several datum surfaces in
it. I want to use the ProSelect function AND the ability to drag a
window around several of the surfaces to select them. Currently I am
using "membfeat" as the ProSelect filter but that only allows single
selection and not window selection. If I pull up the mfg assembly then I
can use the "surface" ProSelect filter and both selection modes work.
How do I make this work from the mfg model?



Patrick Williams | Sr. Application Engineer | CAM Systems | Steelcase
Inc. | 616.698.4078







Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags