Question
Unable to get Promdl handle
Hello all,
I am trying to register the server, create dummy workspace, checkout model and open the model in creo.
I am able to checkout the objects and retrieve in Creo using below code.
// here is necessary declaration
status = ProMdlnameRetrieve(lclmdlName, (ProMdlfileType)mdlType, &retrieveModal);
if (status == PRO_TK_NO_ERROR)
{
Logger::LogInfo("Model retrieved successfully");
}
/* Display the object */
status = ProObjectwindowMdlnameCreate(lclmdlName, (ProType)mdlType, &w_id);
status = ProWindowCurrentSet(w_id);
status = ProMdlDisplay(retrieveModal);
status = ProMdlWindowGet(retrieveModal,&w_id);
status = ProWindowCurrentSet(w_id);
status = ProWindowActivate(w_id);
After this code, some where in my code when I use "ProMdlCurrentGet" -> it doen't give me Promdl handle.
Am I doing wrong thing?
Thanks for the help in advance.
Harsh Patel
