<?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 Inventor Studio Batch rendering in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-studio-batch-rendering/m-p/6665650#M67774</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attempting to set up batch rendering for an assembly. Currently, I have to Render a single image, save it, then I run an ilogic rule to change various parameters, change the&amp;nbsp;visibility of parts, and suppress relationships. Then render the next image and repeat. Ideally, I'd like to use the render animation feature set it to do 1&amp;nbsp;fps, output images, and have it run the ilogic&amp;nbsp;rules at specific points on the timeline. &amp;nbsp;however I cannot seem to find a way to run the rules in inventor studio.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2016 17:15:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-03T17:15:35Z</dc:date>
    <item>
      <title>Inventor Studio Batch rendering</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-studio-batch-rendering/m-p/6665650#M67774</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attempting to set up batch rendering for an assembly. Currently, I have to Render a single image, save it, then I run an ilogic rule to change various parameters, change the&amp;nbsp;visibility of parts, and suppress relationships. Then render the next image and repeat. Ideally, I'd like to use the render animation feature set it to do 1&amp;nbsp;fps, output images, and have it run the ilogic&amp;nbsp;rules at specific points on the timeline. &amp;nbsp;however I cannot seem to find a way to run the rules in inventor studio.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:15:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-studio-batch-rendering/m-p/6665650#M67774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T17:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Studio Batch rendering</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-studio-batch-rendering/m-p/10754608#M131207</link>
      <description>&lt;P&gt;I wonder if anyone is still interested in this. I think it would be possible to setup a batch script utilizing the &lt;STRONG&gt;ray tracing render method&lt;/STRONG&gt;. I'm just not sure how you would select the documents to render. Maybe you could place all of the documents in a folder and let the script iterate through all of them.... I ain't not wiz though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Credit where it is due for the author of this code but this could be a start:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Dim VaultAddin As ApplicationAddIn = ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}")
	VaultAddin.Deactivate()

oDoc = ThisApplication.ActiveDocument
Dim oView As Inventor.View = ThisApplication.ActiveView

Dim oColorScheme As String
oColorScheme = ThisApplication.ActiveColorScheme.Name
Dim oBackGroundType As BackgroundTypeEnum
oBackGroundType = ThisApplication.ColorSchemes.BackgroundType
ThisApplication.ColorSchemes.Item("Presentation").Activate
ThisApplication.ColorSchemes.BackgroundType = 52737 'kOneColorBackgroundType


Dim oOriginSetOff As Boolean
oOriginSetOff = False
If ThisApplication.DisplayOptions.Show3DIndicator Then
	ThisApplication.DisplayOptions.Show3DIndicator = False
	oOriginSetOff = True
End If

On Error Resume Next
With oDoc.ObjectVisibility
	.AllWorkFeatures = False
	.Sketches = False
	.Sketches3D = False
End With

oView.DisplayMode = DisplayModeEnum.kRealisticRendering

oView.RayTracing=  True 
oView.RayTracingQuality = RayTracingQualityEnum.kDraftRayTracingQuality

Dim bStop As Boolean 

Do 
	ThisApplication.UserInterfaceManager.DoEvents
	
	If (oView.RayTracingProgress = 1) Then
		bStop = True
		Dim picName As String = ThisDoc.PathAndFileName(False) + Now.toString(" yyMMddHHmmss") 'timestamp
		Call oView.SaveAsBitmap(picName &amp;amp; ".png", oView.Width, oView.Height)
	End If
	
	If (oView.RayTracing = False) Then
			bStop = True 
	End If
Loop Until (bStop)

oView.RayTracing = False

If oOriginSetOff Then
	ThisApplication.DisplayOptions.Show3DIndicator = True
End If
ThisApplication.ColorSchemes.Item(oColorScheme).Activate
ThisApplication.ColorSchemes.BackgroundType = oBackGroundType

oView.DisplayMode = DisplayModeEnum.kShadedWithEdgesRendering
VaultAddin.Activate()

MessageBox.Show("Exported image to " &amp;amp; ThisDoc.PathAndFileName(False) &amp;amp; ".png", "Export Complete", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try it out.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 23:47:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-studio-batch-rendering/m-p/10754608#M131207</guid>
      <dc:creator>davis.j</dc:creator>
      <dc:date>2021-11-12T23:47:40Z</dc:date>
    </item>
  </channel>
</rss>

