<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Retrieve model in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/Retrieve-model/m-p/992122#M13732</link>
    <description>&lt;P&gt;Hello, I am able to retrieve model but it does not display in window. The model stays in session. How can I display it?&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 09:01:41 GMT</pubDate>
    <dc:creator>Marcusanthony</dc:creator>
    <dc:date>2025-01-07T09:01:41Z</dc:date>
    <item>
      <title>Retrieve model</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Retrieve-model/m-p/989793#M13705</link>
      <description>&lt;P&gt;I retrieve model with ProMdlnameretrieve but I am not able to display it using toolkit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used ProMdlDisplay but still it does not work it stays in active session but do not get displayed in window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 19:42:48 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Retrieve-model/m-p/989793#M13705</guid>
      <dc:creator>Marcusanthony</dc:creator>
      <dc:date>2024-12-18T19:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve model</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Retrieve-model/m-p/989799#M13706</link>
      <description>&lt;P&gt;Ive done this several ways, i will paste a couple samples here.&amp;nbsp; Looks like Im still using the deprecated function but it should function the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case i create and set a window current, then retrieve then display.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;ProWindowCurrentGet(&amp;amp;WindowId0);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ProObjectwindowCreate(windowname, PRO_MDL_ASSEMBLY, &amp;amp;WindowId1);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ProWindowCurrentSet(WindowId1);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tkerr = ProMdlRetrieve (name, PRO_MDL_ASSEMBLY, &amp;amp;mdlUnitDrawing); &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (tkerr == PRO_TK_NO_ERROR)&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ProMdlDisplay(mdlUnitDrawing);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ProWindowActivate(WindowId1);&lt;/DIV&gt;&lt;DIV&gt;------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In this case, the model was retieved, then a window created and set current, then Promdldisplay was used:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;tkerr = ProMdlRetrieve(modelName2, PRO_MDL_DRAWING, &amp;amp;mdlDrawing);&lt;BR /&gt;fprintf(fp, "retr %d\n", tkerr);&lt;BR /&gt;tkerr = ProObjectwindowCreate(modelName, PRO_MDL_DRAWING, &amp;amp;WinId);&lt;BR /&gt;fprintf(fp, "ob win %d\n", tkerr);&lt;BR /&gt;tkerr = ProWindowCurrentSet(WinId);&lt;BR /&gt;fprintf(fp, "win cur set %d\n", tkerr);&lt;BR /&gt;tkerr = ProMdlDisplay(mdlDrawing);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;This code below is something I got from the user guide examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;       /*  Retrieve an object  */
    if (err == PRO_TK_NO_ERROR &amp;amp;&amp;amp; ret &amp;gt; 0)
    {
	ProStringToWstring(w_name_type, name);
    	err = ProMdlnameRetrieve (w_name_type, type, &amp;amp;model);
    	TEST_CALL_REPORT("ProMdlnameRetrieve ()",
                        "UserRestartProeTest()", err, err !=PRO_TK_NO_ERROR);

        /*  Display the object  */
        err = ProObjectwindowMdlnameCreate(w_name_type, (ProType)type, &amp;amp;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);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 20:10:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Retrieve-model/m-p/989799#M13706</guid>
      <dc:creator>msteffke</dc:creator>
      <dc:date>2024-12-18T20:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve model</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Retrieve-model/m-p/992122#M13732</link>
      <description>&lt;P&gt;Hello, I am able to retrieve model but it does not display in window. The model stays in session. How can I display it?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 09:01:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Retrieve-model/m-p/992122#M13732</guid>
      <dc:creator>Marcusanthony</dc:creator>
      <dc:date>2025-01-07T09:01:41Z</dc:date>
    </item>
  </channel>
</rss>

