<?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 API EXPORT PNG in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-export-png/m-p/14262157#M87043</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yhonsalas_0-1789088490676.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1660779i5F671846340FC760/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yhonsalas_0-1789088490676.png" alt="yhonsalas_0-1789088490676.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2026 01:02:29 GMT</pubDate>
    <dc:creator>yhonsalas</dc:creator>
    <dc:date>2026-09-11T01:02:29Z</dc:date>
    <item>
      <title>API EXPORT PNG</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-export-png/m-p/14262157#M87043</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yhonsalas_0-1789088490676.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1660779i5F671846340FC760/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yhonsalas_0-1789088490676.png" alt="yhonsalas_0-1789088490676.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2026 01:02:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-export-png/m-p/14262157#M87043</guid>
      <dc:creator>yhonsalas</dc:creator>
      <dc:date>2026-09-11T01:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: API EXPORT PNG</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-export-png/m-p/14262211#M87044</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3981635"&gt;@yhonsalas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This macro saves a PNG screenshot of the project's first view to a folder named "PNG_Files" automatically appending an incremental number to the filename if a file with that name already exists.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub SaveScreenCaptureToFile()
  Dim RobApp As RobotApplication: Set RobApp = New RobotApplication
  
  Dim filePath As String: filePath = GetFolder(RobApp.Project.FileName) &amp;amp; "PNG_Files\"
  Dim fso As Object: Set fso = CreateObject("Scripting.FileSystemObject")
  If Not fso.FolderExists(filePath) Then fso.CreateFolder filePath
  
  Dim baseName As String: baseName = "ScreenCapture"
  Dim ext As String:           ext = ".png"
  Dim fullPath As String: fullPath = filePath &amp;amp; baseName &amp;amp; ext
  
  Do While fso.FileExists(fullPath)
    i = i + 1: fullPath = filePath &amp;amp; baseName &amp;amp; "(" &amp;amp; i &amp;amp; ")" &amp;amp; ext
  Loop
  
  If Not RobApp.Project.viewMngr.GetView(1).Printable.SaveToFile(fullPath, I_OFF_PNG) Then
    MsgBox "Failed to save the screen capture.", vbOKOnly, "Error"
  End If
 
  Set fso = Nothing
  Set RobApp = Nothing
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;for more settings&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-command-vba-projection-capture-of-a-view/m-p/3188566" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-command-vba-projection-capture-of-a-view/m-p/3188566&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-save-a-view-from-robot-on-desktop-in-png-format/m-p/13739732#M85118" target="_blank"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-save-a-view-from-robot-on-desktop-in-png-format/m-p/13739732#M85118&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2026 08:55:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-export-png/m-p/14262211#M87044</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2026-09-12T08:55:04Z</dc:date>
    </item>
  </channel>
</rss>

