<?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 Save snapshot of view using Apprentice in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-snapshot-of-view-using-apprentice/m-p/8694114#M96143</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to write a code to create a snapshot from multiple angles of a document (ipt/iam) and save it to file.&lt;BR /&gt;So far I've only tried the code from the links below but on both of them I get the same exception saying:&lt;/P&gt;
&lt;P&gt;"An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll&lt;/P&gt;
&lt;P&gt;Additional information: Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"&lt;/P&gt;
&lt;P&gt;I get the same error message on both functions SaveAsBitmap and CreateImage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2013/03/inventor-api-training-lesson-12.html" target="_blank"&gt;https://modthemachine.typepad.com/my_weblog/2013/03/inventor-api-training-lesson-12.html&lt;/A&gt; - "&lt;STRONG&gt;VB.NET example that opens a part and creates a jpg file&lt;/STRONG&gt;"&lt;/P&gt;
&lt;P&gt;&lt;A href="http://aucache.autodesk.com/au2011/sessions/5606/class_presentations/v1_CP5606-Apprentice.pdf" target="_blank"&gt;http://aucache.autodesk.com/au2011/sessions/5606/class_presentations/v1_CP5606-Apprentice.pdf&lt;/A&gt; - Function&lt;/P&gt;
&lt;P&gt;"&lt;SPAN style="left: 120.04px; top: 270.699px; font-size: 15.8px; font-family: monospace; transform: scaleX(0.916344);"&gt;I&lt;/SPAN&gt;&lt;SPAN style="left: 233.033px; top: 270.699px; font-size: 15.8px; font-family: monospace; transform: scaleX(0.916844);"&gt;mageFromCameraSample&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am using Inventor 2015. Anyone got the examples working with Inventor 2015?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 15:51:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-29T15:51:25Z</dc:date>
    <item>
      <title>Save snapshot of view using Apprentice</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-snapshot-of-view-using-apprentice/m-p/8694114#M96143</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to write a code to create a snapshot from multiple angles of a document (ipt/iam) and save it to file.&lt;BR /&gt;So far I've only tried the code from the links below but on both of them I get the same exception saying:&lt;/P&gt;
&lt;P&gt;"An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll&lt;/P&gt;
&lt;P&gt;Additional information: Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"&lt;/P&gt;
&lt;P&gt;I get the same error message on both functions SaveAsBitmap and CreateImage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2013/03/inventor-api-training-lesson-12.html" target="_blank"&gt;https://modthemachine.typepad.com/my_weblog/2013/03/inventor-api-training-lesson-12.html&lt;/A&gt; - "&lt;STRONG&gt;VB.NET example that opens a part and creates a jpg file&lt;/STRONG&gt;"&lt;/P&gt;
&lt;P&gt;&lt;A href="http://aucache.autodesk.com/au2011/sessions/5606/class_presentations/v1_CP5606-Apprentice.pdf" target="_blank"&gt;http://aucache.autodesk.com/au2011/sessions/5606/class_presentations/v1_CP5606-Apprentice.pdf&lt;/A&gt; - Function&lt;/P&gt;
&lt;P&gt;"&lt;SPAN style="left: 120.04px; top: 270.699px; font-size: 15.8px; font-family: monospace; transform: scaleX(0.916344);"&gt;I&lt;/SPAN&gt;&lt;SPAN style="left: 233.033px; top: 270.699px; font-size: 15.8px; font-family: monospace; transform: scaleX(0.916844);"&gt;mageFromCameraSample&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am using Inventor 2015. Anyone got the examples working with Inventor 2015?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 15:51:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-snapshot-of-view-using-apprentice/m-p/8694114#M96143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T15:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Save snapshot of view using Apprentice</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-snapshot-of-view-using-apprentice/m-p/8695717#M96149</link>
      <description>&lt;P&gt;I dont think you can do that with apprentice as it's a non UI based method. That means you can only do things that does not require any visual needs. You can get thumbnails with apprentice because they already exist but in order to get what you need, an interface is needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 14:10:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-snapshot-of-view-using-apprentice/m-p/8695717#M96149</guid>
      <dc:creator>NachitoMax</dc:creator>
      <dc:date>2019-03-30T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Save snapshot of view using Apprentice</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-snapshot-of-view-using-apprentice/m-p/8697508#M96163</link>
      <description>&lt;P&gt;While it is a non-UI based method it can still be used to show preview of a part on the UI. For example check out this article &lt;A href="http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-06D49EB6-7871-4A1B-917F-756735B5D0E7" target="_blank"&gt;http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-06D49EB6-7871-4A1B-917F-756735B5D0E7&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It supplies a window handle of a control and the preview can be drawn inside that control. I tried getting the preview from the OnPaint event but it did not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the articles in my post show that it is possible. But either something's changed since they were written or I'm missing something obvious.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 06:38:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-snapshot-of-view-using-apprentice/m-p/8697508#M96163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-01T06:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Save snapshot of view using Apprentice</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-snapshot-of-view-using-apprentice/m-p/8801863#M97604</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At present, Inventor 2015 is very older version to test the scenario. Inventor 2015 installer is not available to install and test the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 12:27:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-snapshot-of-view-using-apprentice/m-p/8801863#M97604</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2019-05-20T12:27:20Z</dc:date>
    </item>
  </channel>
</rss>

