Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
I retrieve model with ProMdlnameretrieve but I am not able to display it using toolkit.
I used ProMdlDisplay but still it does not work it stays in active session but do not get displayed in window.
What should I do?
Ive done this several ways, i will paste a couple samples here. Looks like Im still using the deprecated function but it should function the same.
In this case i create and set a window current, then retrieve then display.
This code below is something I got from the user guide examples.
/* Retrieve an object */
if (err == PRO_TK_NO_ERROR && ret > 0)
{
ProStringToWstring(w_name_type, name);
err = ProMdlnameRetrieve (w_name_type, type, &model);
TEST_CALL_REPORT("ProMdlnameRetrieve ()",
"UserRestartProeTest()", err, err !=PRO_TK_NO_ERROR);
/* Display the object */
err = ProObjectwindowMdlnameCreate(w_name_type, (ProType)type, &w_id);
TEST_CALL_REPORT("ProObjectwindowCreate()",
"UserRestartProeTest()", err, err !=PRO_TK_NO_ERROR);
err = ProMdlDisplay(model);
TEST_CALL_REPORT("ProMdlDisplay()",
"UserRestartProeTest()", err, err !=PRO_TK_NO_ERROR);
Hello, I am able to retrieve model but it does not display in window. The model stays in session. How can I display it?
