ProSelect not working in toolkit after creating drawing by ProDrawingFromTmpltCreate
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 .
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
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).