<?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 Camera.SaveAsBitmap replace existing file in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/camera-saveasbitmap-replace-existing-file/m-p/12804447#M9705</link>
    <description>&lt;P&gt;Hi everyone.&lt;BR /&gt;&lt;BR /&gt;For a thumbnail creator I'm using ray tracing and saving the files with the Camera.SaveAsBitmap.&lt;BR /&gt;Atm this doesn't work if the file already exists.&lt;BR /&gt;&lt;BR /&gt;Is there a way to replace the existing file with the new file?&lt;BR /&gt;I don't see anything on the detail page of SaveAsBitmap:&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=Camera_SaveAsBitmap" target="_blank"&gt;Inventor 2022 Help | Camera.SaveAsBitmap Method | Autodesk&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Br&lt;BR /&gt;Justin&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 10:19:47 GMT</pubDate>
    <dc:creator>J.VandeMerckt</dc:creator>
    <dc:date>2024-05-29T10:19:47Z</dc:date>
    <item>
      <title>Camera.SaveAsBitmap replace existing file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/camera-saveasbitmap-replace-existing-file/m-p/12804447#M9705</link>
      <description>&lt;P&gt;Hi everyone.&lt;BR /&gt;&lt;BR /&gt;For a thumbnail creator I'm using ray tracing and saving the files with the Camera.SaveAsBitmap.&lt;BR /&gt;Atm this doesn't work if the file already exists.&lt;BR /&gt;&lt;BR /&gt;Is there a way to replace the existing file with the new file?&lt;BR /&gt;I don't see anything on the detail page of SaveAsBitmap:&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=Camera_SaveAsBitmap" target="_blank"&gt;Inventor 2022 Help | Camera.SaveAsBitmap Method | Autodesk&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Br&lt;BR /&gt;Justin&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 10:19:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/camera-saveasbitmap-replace-existing-file/m-p/12804447#M9705</guid>
      <dc:creator>J.VandeMerckt</dc:creator>
      <dc:date>2024-05-29T10:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Camera.SaveAsBitmap replace existing file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/camera-saveasbitmap-replace-existing-file/m-p/12804792#M9706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12227229"&gt;@J.VandeMerckt&lt;/a&gt;.&amp;nbsp; You could handle the search for the existing file, and its possible deletion yourself, in lines of code before the line of code that creates the new image file, like this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim sImageFile As String = "C:\Temp\MyImage.bmp"
If System.IO.File.Exists(sImageFile) Then
	System.IO.File.Delete(sImageFile)
End If&lt;/LI-CODE&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN&gt;&lt;STRONG&gt; ACCEPT SOLUTION &lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 12:55:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/camera-saveasbitmap-replace-existing-file/m-p/12804792#M9706</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-05-29T12:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Camera.SaveAsBitmap replace existing file</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/camera-saveasbitmap-replace-existing-file/m-p/12804798#M9707</link>
      <description>Ok, was thinking about a replace function but deleting the file works too.&lt;BR /&gt;Thank you for the help.</description>
      <pubDate>Wed, 29 May 2024 12:58:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/camera-saveasbitmap-replace-existing-file/m-p/12804798#M9707</guid>
      <dc:creator>J.VandeMerckt</dc:creator>
      <dc:date>2024-05-29T12:58:17Z</dc:date>
    </item>
  </channel>
</rss>

