<?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: Generate bitmap from part file using apprentice in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/generate-bitmap-from-part-file-using-apprentice/m-p/6704112#M105385</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have good news for this. It&amp;nbsp;is a known issue&amp;nbsp;that was discussed&amp;nbsp;by my colleague in this forum post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/apprentice-server-com-exception-with-inventor-2015/m-p/5919548" target="_blank"&gt;http://forums.autodesk.com/t5/inventor-customization/apprentice-server-com-exception-with-inventor-2015/m-p/5919548&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added a note to the Inventor Engineering ticket that this issue was reported again in this post.&amp;nbsp;I find that the&amp;nbsp;problem still exists in Inventor 2017.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wayne&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2016 01:12:07 GMT</pubDate>
    <dc:creator>wayne.brill</dc:creator>
    <dc:date>2016-11-23T01:12:07Z</dc:date>
    <item>
      <title>Generate bitmap from part file using apprentice</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/generate-bitmap-from-part-file-using-apprentice/m-p/6700040#M105384</link>
      <description>&lt;P&gt;Hi guys something I have never played with but something I would like to do now. I am trying to use apprentice to generate a bitmap in a predefined orientation and saving the bitmap to file. I am using sample code from Brian Ekins' AU handout - CP5605 but the code is just not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;' Create an instance of Apprentice. 
        Dim apprentice As New Inventor.ApprenticeServerComponent

        ' Open a document. 
        Dim doc As Inventor.ApprenticeServerDocument
        doc = apprentice.Open("c:\file.ipt")

        ' Create a camera to define an iso view. 
        Dim camera As Inventor.Camera = apprentice.TransientObjects.CreateCamera

        ' Assign the component definition to camera so it knows what it's looking at. 
        '&lt;U&gt;THIS IS WHERE IT FAILS&lt;/U&gt;&lt;BR /&gt;        camera.SceneObject = doc.ComponentDefinition

        ' Set the orientation, fit the view, and apply it. 
        '&lt;U&gt;THIS IS WHERE IT FAILS AS WELL&lt;/U&gt;&lt;BR /&gt;        camera.ViewOrientationType = Inventor.ViewOrientationTypeEnum.kIsoTopRightViewOrientation


        camera.Fit()
        camera.Apply()

        ' Get an image of what the camera currently sees. 
        Dim cameraResults As stdole.IPictureDisp = camera.CreateImage(300, 300)&lt;/PRE&gt;&lt;P&gt;Has anyone got some pointers for me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 14:58:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/generate-bitmap-from-part-file-using-apprentice/m-p/6700040#M105384</guid>
      <dc:creator>Raider_71</dc:creator>
      <dc:date>2016-11-21T14:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Generate bitmap from part file using apprentice</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/generate-bitmap-from-part-file-using-apprentice/m-p/6704112#M105385</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have good news for this. It&amp;nbsp;is a known issue&amp;nbsp;that was discussed&amp;nbsp;by my colleague in this forum post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/apprentice-server-com-exception-with-inventor-2015/m-p/5919548" target="_blank"&gt;http://forums.autodesk.com/t5/inventor-customization/apprentice-server-com-exception-with-inventor-2015/m-p/5919548&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added a note to the Inventor Engineering ticket that this issue was reported again in this post.&amp;nbsp;I find that the&amp;nbsp;problem still exists in Inventor 2017.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wayne&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 01:12:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/generate-bitmap-from-part-file-using-apprentice/m-p/6704112#M105385</guid>
      <dc:creator>wayne.brill</dc:creator>
      <dc:date>2016-11-23T01:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generate bitmap from part file using apprentice</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/generate-bitmap-from-part-file-using-apprentice/m-p/6707426#M105386</link>
      <description>&lt;P&gt;Hi Wayne,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the feedback. Do you think this will be fixed in a service pack at all?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 09:11:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/generate-bitmap-from-part-file-using-apprentice/m-p/6707426#M105386</guid>
      <dc:creator>Raider_71</dc:creator>
      <dc:date>2016-11-24T09:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Generate bitmap from part file using apprentice</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/generate-bitmap-from-part-file-using-apprentice/m-p/6713999#M105387</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have had several reports of this issue and have let Inventor Engineering know that this problem is a high priority. I am not sure when a fix for this will be provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wayne&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 20:22:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/generate-bitmap-from-part-file-using-apprentice/m-p/6713999#M105387</guid>
      <dc:creator>wayne.brill</dc:creator>
      <dc:date>2016-11-28T20:22:41Z</dc:date>
    </item>
  </channel>
</rss>

