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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

ProSelect not working in toolkit after creating drawing by ProDrawingFromTmpltCreate

ppandarkar-2
15-Moonstone

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


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.
1 REPLY 1
mender
6-Contributor
(To:ppandarkar-2)

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).

Top Tags