Skip to main content
1-Visitor
June 30, 2015
Solved

CREO OTK/TK how to hide selection dialog ?

  • June 30, 2015
  • 5 replies
  • 1810 views

I want to hide selection dialog but still get selecting items in my own dialog, I tried to use "ProSelectionEnvOption" but default dialog is shown anyway.

Example how I try to make it hide :

  ProSelectionEnvOption   env_options[ 1 ] = {{PRO_SELECT_HIDE_SEL_DLG, 1}};

  ProSelectionEnv penv;

  ProSelectionEnvAlloc(env_options,1,&penv);

  ProSelect("surface",-1,NULL,NULL,penv,NULL,NULL,NULL);

  ProSelectionEnvFree(penv);

Best answer by Eike_Hauptmann

You can't you only can check if he selects the right thing ...

can we close one of these ... it's a little bit tricky to talk in two topics about the same thing ^.^

Br,

Eike

5 replies

15-Moonstone
June 30, 2015

Hi,

If you have an async. OTK / TK programm you can do it by calling the current selection and ask if there is the object inside you're waiting for. If not go through with a while loop. Or something like that.

Else only ideas ... not sure if it work.

Start a ProMacroLoad and ProMacroExecture with the waiting for a pick command. I think this is not blocking anything and you can run your code direktly after tha pick. But I'm not sure if it's working inside a synchronous application.

I don't think there is an offical solution for this : ) But I'm not 100 % sure.

Br,

Eike

amedina-21-VisitorAuthor
1-Visitor
July 1, 2015

I tried to use current selection buffer on focus out my dialog window, but now i can't understand how to set up selection filters without using ProSelect or wfcSession->Select command

15-Moonstone
July 1, 2015

You can't you only can check if he selects the right thing ...

can we close one of these ... it's a little bit tricky to talk in two topics about the same thing ^.^

Br,

Eike

amedina-21-VisitorAuthor
1-Visitor
July 1, 2015

yep, i was confused when firs topic disappears, and create second, i close this, thanks