<?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: Export .PNG Settings....can you toggle them w/ iLogic? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13986426#M179045</link>
    <description>&lt;P&gt;Ahhh! good catch&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;I was repurposing something from the past that was working with sheet meal parts, and I didn't really fully vet the example.&lt;BR /&gt;I just updated my previous example to handle the issues you mentioned more gracefully.&lt;/P&gt;
&lt;P&gt;Thanks for the feedback and for taking the time to have a look.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jan 2026 14:34:13 GMT</pubDate>
    <dc:creator>Curtis_W</dc:creator>
    <dc:date>2026-01-22T14:34:13Z</dc:date>
    <item>
      <title>Export .PNG Settings....can you toggle them w/ iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13985067#M179033</link>
      <description>&lt;P&gt;Gang...&lt;/P&gt;&lt;P&gt;I have some iLogic that is exporting a .png, but appears we can't toggle the two additional settings for Showing the Active Components (turn off) and the Transparent Background (Off). Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'---------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN&gt;' Export Current View to Desktop\&amp;lt;AssemblyName&amp;gt;\template.png&lt;/SPAN&gt;
&lt;SPAN&gt;' Resolution: 8000 x 8000&lt;/SPAN&gt;
&lt;SPAN&gt;' Inventor 2023 — minimal API usage for compatibility&lt;/SPAN&gt;
&lt;SPAN&gt;'---------------------------------------------------------&lt;/SPAN&gt;

&lt;SPAN&gt;' Fully qualify Inventor types to avoid ambiguity with WinForms&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;invApp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;Application&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;invApp&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;' Ensure assembly (.iam)&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Windows&lt;/SPAN&gt;.&lt;SPAN&gt;Forms&lt;/SPAN&gt;.&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"This rule only works in an Assembly (.iam)."&lt;/SPAN&gt;, &lt;SPAN&gt;"Error"&lt;/SPAN&gt;)
    &lt;SPAN&gt;Return&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;' Active view&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;View&lt;/SPAN&gt; = &lt;SPAN&gt;invApp&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveView&lt;/SPAN&gt;

&lt;SPAN&gt;' --------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN&gt;' Build Desktop\&amp;lt;AssemblyName&amp;gt;\template.png&lt;/SPAN&gt;
&lt;SPAN&gt;' --------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN&gt;' Get assembly base name (no extension)&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;baseName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;GetFileNameWithoutExtension&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;)

&lt;SPAN&gt;' Sanitize name for folder creation (remove invalid path characters)&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;invalidChars&lt;/SPAN&gt;() &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Char&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;GetInvalidFileNameChars&lt;/SPAN&gt;()
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;ch&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Char&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;invalidChars&lt;/SPAN&gt;
    &lt;SPAN&gt;baseName&lt;/SPAN&gt; = &lt;SPAN&gt;baseName&lt;/SPAN&gt;.&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;ch&lt;/SPAN&gt;.&lt;SPAN&gt;ToString&lt;/SPAN&gt;(), &lt;SPAN&gt;"_"&lt;/SPAN&gt;)
&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;' Resolve Desktop path (respects OneDrive Desktop if redirected)&lt;/SPAN&gt;
&lt;SPAN&gt;'Dim desktopPath As String = System.Environment.GetFolderPath(System.Environment.SpecialFolder.DesktopDirectory)&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;desktopPath&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"\\umklfs15\doctrak$\Web\Wheels\stock-item"&lt;/SPAN&gt;

&lt;SPAN&gt;' Create target folder: Desktop\&amp;lt;AssemblyName&amp;gt;&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;targetFolder&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;Combine&lt;/SPAN&gt;(&lt;SPAN&gt;desktopPath&lt;/SPAN&gt;, &lt;SPAN&gt;baseName&lt;/SPAN&gt;)
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Directory&lt;/SPAN&gt;.&lt;SPAN&gt;Exists&lt;/SPAN&gt;(&lt;SPAN&gt;targetFolder&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Directory&lt;/SPAN&gt;.&lt;SPAN&gt;CreateDirectory&lt;/SPAN&gt;(&lt;SPAN&gt;targetFolder&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;' Final output file&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;outFile&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;Combine&lt;/SPAN&gt;(&lt;SPAN&gt;targetFolder&lt;/SPAN&gt;, &lt;SPAN&gt;"template.png"&lt;/SPAN&gt;)

&lt;SPAN&gt;' --------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN&gt;' Export as PNG at requested resolution&lt;/SPAN&gt;
&lt;SPAN&gt;' --------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;outWidth&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 8000
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;outHeight&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 8000

&lt;SPAN&gt;Try&lt;/SPAN&gt;
    &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;SaveAsBitmap&lt;/SPAN&gt;(&lt;SPAN&gt;outFile&lt;/SPAN&gt;, &lt;SPAN&gt;outWidth&lt;/SPAN&gt;, &lt;SPAN&gt;outHeight&lt;/SPAN&gt;)
    &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Windows&lt;/SPAN&gt;.&lt;SPAN&gt;Forms&lt;/SPAN&gt;.&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"PNG export complete:"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;vbCrLf&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;outFile&lt;/SPAN&gt;, &lt;SPAN&gt;"Done"&lt;/SPAN&gt;)
&lt;SPAN&gt;Catch&lt;/SPAN&gt; &lt;SPAN&gt;ex&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Exception&lt;/SPAN&gt;
    &lt;SPAN&gt;' Fallback if the GPU/driver rejects 8000 px (common on some systems)&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;fallbackW&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 6000
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;fallbackH&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = 6000
    &lt;SPAN&gt;Try&lt;/SPAN&gt;
        &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;SaveAsBitmap&lt;/SPAN&gt;(&lt;SPAN&gt;outFile&lt;/SPAN&gt;, &lt;SPAN&gt;fallbackW&lt;/SPAN&gt;, &lt;SPAN&gt;fallbackH&lt;/SPAN&gt;)
        &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Windows&lt;/SPAN&gt;.&lt;SPAN&gt;Forms&lt;/SPAN&gt;.&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;( _
            &lt;SPAN&gt;"8000×8000 failed on this system. Exported "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;fallbackW&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"×"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;fallbackH&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;" instead:"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;vbCrLf&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;outFile&lt;/SPAN&gt;, _
            &lt;SPAN&gt;"Export Complete (Fallback)"&lt;/SPAN&gt;)
    &lt;SPAN&gt;Catch&lt;/SPAN&gt; &lt;SPAN&gt;ex2&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Exception&lt;/SPAN&gt;
        &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Windows&lt;/SPAN&gt;.&lt;SPAN&gt;Forms&lt;/SPAN&gt;.&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;( _
            &lt;SPAN&gt;"Export failed. Error:"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;vbCrLf&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;ex2&lt;/SPAN&gt;.&lt;SPAN&gt;Message&lt;/SPAN&gt;, _
            &lt;SPAN&gt;"Export Error"&lt;/SPAN&gt;)
    &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PNG Settings.png" style="width: 287px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1612022i8220CC53B36F0BB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PNG Settings.png" alt="PNG Settings.png" /&gt;&lt;/span&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 16:52:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13985067#M179033</guid>
      <dc:creator>steveh3</dc:creator>
      <dc:date>2026-01-21T16:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export .PNG Settings....can you toggle them w/ iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13985154#M179034</link>
      <description>&lt;P&gt;We can use the other method named&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=View_SaveAsBitmapWithOptions" target="_blank" rel="noopener"&gt;View.SaveAsBitmapWithOptions&lt;/A&gt;&amp;nbsp;, which will give us the option to control the transparent background, but not the other 'Active Components' option.&amp;nbsp; I don't recall how to control that one, but the thing that comes to mind is the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=DesignViewRepresentation_SetVisibilityOfOccurrences" target="_blank" rel="noopener"&gt;DesignViewRepresentation.SetVisibilityOfOccurrences&lt;/A&gt;&amp;nbsp;method, which would likely 'dirty' the document to use.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 17:54:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13985154#M179034</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2026-01-21T17:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export .PNG Settings....can you toggle them w/ iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13985170#M179035</link>
      <description>&lt;P&gt;After thinking about that 'Active Components' option some more, I started looking around and did find some application level settings that you may be able to set a certain way before saving the image, then set back to original settings after saving the image.&amp;nbsp; Manually, when we go into the Application Options, and go to the Assembly tab, we see a boxed in area labeled 'Component Opacity', with one toggle setting (All or Active Only).&amp;nbsp; Mine is set to 'Active Only' all the time, but not sure about yours.&amp;nbsp; Next, if we go to the Display tab, we see an area labeled 'Inactive Component Appearance', where there is a control for adjusting the '% opaque'.&amp;nbsp; I'm pretty sure those settings can be accessed by code too (Links below).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=Application_AssemblyOptions" target="_blank" rel="noopener"&gt;Application.AssemblyOptions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=GUID-AssemblyOptions" target="_blank" rel="noopener"&gt;AssemblyOptions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=AssemblyOptions_OnlyActiveComponentIsOpaque" target="_blank" rel="noopener"&gt;AssemblyOptions.OnlyActiveComponentIsOpaque&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=Application_DisplayOptions" target="_blank" rel="noopener"&gt;Application.DisplayOptions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=GUID-DisplayOptions" target="_blank" rel="noopener"&gt;DisplayOptions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=DisplayOptions_InactiveComponentsShadeOpacity" target="_blank" rel="noopener"&gt;DisplayOptions.InactiveComponentsShadeOpacity&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 18:08:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13985170#M179035</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2026-01-21T18:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export .PNG Settings....can you toggle them w/ iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13985366#M179036</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/45931"&gt;@steveh3&lt;/a&gt;&amp;nbsp;, something like this, where we open the component in another view, might work for you too. Hope that helps, Curtis&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;CurrentDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveEditDocument&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;View&lt;/SPAN&gt; = &lt;SPAN&gt;Nothing&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;IsNot&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;oView&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Views&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;()
	&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Activate&lt;/SPAN&gt;()
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;oView&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveView&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCamera&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Camera&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Camera&lt;/SPAN&gt;
&lt;SPAN&gt;oCamera&lt;/SPAN&gt;.&lt;SPAN&gt;ViewOrientationType&lt;/SPAN&gt; = &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kIsoTopRightViewOrientation&lt;/SPAN&gt;
&lt;SPAN&gt;oCamera&lt;/SPAN&gt;.&lt;SPAN&gt;ApplyWithoutTransition&lt;/SPAN&gt;
&lt;SPAN&gt;oCamera&lt;/SPAN&gt;.&lt;SPAN&gt;fit&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOptions&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;NameValueMap&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateNameValueMap&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"TransparentBackground"&lt;/SPAN&gt;) = &lt;SPAN&gt;True&lt;/SPAN&gt;

&lt;SPAN&gt;oName&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;GetFileNameWithoutExtension&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;)
&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;SaveAsBitmapWithOptions&lt;/SPAN&gt;(&lt;SPAN&gt;"C:\Temp\"&lt;/SPAN&gt;&amp;amp; &lt;SPAN&gt;oName&lt;/SPAN&gt; &amp;amp;&lt;SPAN&gt;".png"&lt;/SPAN&gt;, 8000, 8000, &lt;SPAN&gt;oOptions&lt;/SPAN&gt;)

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;IsNot&lt;/SPAN&gt; &lt;SPAN&gt;CurrentDoc&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;IsNot&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Close&lt;/SPAN&gt;()
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 14:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13985366#M179036</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2026-01-22T14:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export .PNG Settings....can you toggle them w/ iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13986273#M179041</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_W&lt;/a&gt;.&amp;nbsp; I tried to reply through a Private Message, but it said it was disabled, so I am posting here.&amp;nbsp; Nice idea with creating a new view of the document before capturing the image, when in-place editing a component in an assembly, as a workaround for the one option in those methods.&amp;nbsp;&amp;nbsp;I might be wrong about this, because I did not test it yet, but it looks like your code example may have a potential problem or limitation.&amp;nbsp; The oView variable only gets a value assigned to it when the ActiveEditDocument and ActiveDocument are Not the same, but not when they Are the same.&amp;nbsp; So it seems like if we were not in-place editing a component within an assembly when we run that rule, the rule would encounter an error just after the If...Then statement, when it tries to get the Camera from that oView variable which has no value.&amp;nbsp; Seems like there should probably be an 'Else' segment in the If...Then statement, which sets the oView variable's value to the 'active' view, or the document's first view, so it will work either way.&amp;nbsp; Then, just as an optional secondary suggestion, maybe only do the camera angle manipulation within the first part of the If...Then statement, when the two do not match and it creates a new view of the document...otherwise capture the current camera angle of the active document.&amp;nbsp; But I guess it depends on the user's intents and timing of when the rule gets ran.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 12:48:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13986273#M179041</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2026-01-22T12:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export .PNG Settings....can you toggle them w/ iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13986426#M179045</link>
      <description>&lt;P&gt;Ahhh! good catch&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;I was repurposing something from the past that was working with sheet meal parts, and I didn't really fully vet the example.&lt;BR /&gt;I just updated my previous example to handle the issues you mentioned more gracefully.&lt;/P&gt;
&lt;P&gt;Thanks for the feedback and for taking the time to have a look.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 14:34:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-png-settings-can-you-toggle-them-w-ilogic/m-p/13986426#M179045</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2026-01-22T14:34:13Z</dc:date>
    </item>
  </channel>
</rss>

