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

PRO_TK_BAD_CONTEXT

JimRidge
1-Newbie

PRO_TK_BAD_CONTEXT

I've used the following sequence to load a standard model - copy it to a
new model - erase the standard - display the new model and activate the
window.



ProMdlLoad

ProMdlCopy

ProMdlErase

ProMdlDisplay

ProMdlWindowGet

ProWindowActivate



But when I try to get the current model I get the bad context error.
What I am not understanding is how to set the current model. There
doesn't seem to be a way to do this, but I am sure it's just my
inexperience.



ProMdlCurrentGet(&pro_model) returns the bed context error.





Thanks for any help,



Jim Ridge

Eaton Truck Division

Galesburg, Michigan

Tel 269.342.3694






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.
2 REPLIES 2

Hey Jim,

Sorry to open very old thread but I am facing same issue as yours.ProMdlCurrentGet() is returning <u>PRO_TK_BAD_CONTEXT</u>. Did you got any solution for this? I am using WF 5.0 M060

Thanks,

Rahul

You could get the current window ProWindowCurrentGet and then
call ProWindowMdlGet to get the model.

More details.
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration