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

ProSelect not working in toolkit after creating drawing by ProDrawingFromTmpltCreate

Aquamarine

ProSelect not working in toolkit after creating drawing by ProDrawingFromTmpltCreate

Hi..

I am creating a drawing by ProDrawingFromTmpltCreate and then i want to create a note and for that need selection of edge/suface.

But Proselect API not working after creating drawing it gives error as -14 (PRO_TK_PICK_ABOVE).

and when i checked this ProSelect API on current drawing (manually created) without ProDrawingFromTmpltCreate that time it is working.

So please can anybody suggest me how to use ProSelect after creating drawing by ProDrawingFromTmpltCreate .

Regards,

Prashant Pandarkar

1 REPLY 1
Highlighted

Re: ProSelect not working in toolkit after creating drawing by ProDrawingFromTmpltCreate

I didn't check the code (because I'm writing this from home), but I'm pretty sure the issue here is that template instantiation involves pushing a command to act just afterwards, and here, the TK user is capable of sending more commands in the middle of that, where a normal UI user would not be.  Two mechanisms that might get the job done here:

1) You could try pushing a command of your own, which you've registered and which will call back into the TK app.

2) You could use a notification to be told when the event loop gets control after the command.

I'm afraid I don't have exact code to offer (again, writing from home).

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