<?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: How do I access Inventor Studio elements in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/11353041#M126092</link>
    <description>&lt;P&gt;Just a side question on Inventor Studio and batch rendering via iLogic - is there a method to check if the Inventor Studio Camera is either visible or hidden? It would be a useful toggle for the operator to switch cameras on or off for their render batch session. I had a look but couldn't identify anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_KarlH_0-1660202678562.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1102732iED4C6EDD65C5EE68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_KarlH_0-1660202678562.png" alt="_KarlH_0-1660202678562.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The quickest alternative I can think of would be to have a keyword that a user can rename camera views with, that are then whitelisting/blacklisting cameras for the batch render process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 07:25:35 GMT</pubDate>
    <dc:creator>_KarlH</dc:creator>
    <dc:date>2022-08-11T07:25:35Z</dc:date>
    <item>
      <title>How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/4814049#M126082</link>
      <description>Using either VBA or VB.NET, how do I access Inventor Studio elements (such as creating cameras, scenes, lighting and rendering)? Is there an API/library/scripting language for this?</description>
      <pubDate>Thu, 13 Feb 2014 17:38:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/4814049#M126082</guid>
      <dc:creator>VoteCoffee</dc:creator>
      <dc:date>2014-02-13T17:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/4819899#M126083</link>
      <description>&lt;P&gt;Unfortunately you can't create studio elements from the API, it mainly provides access to existing elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a VBA sample that illustrates how to generate a rendered image, supposing you have an existing camera "MyCamera" created manually in the studio environment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub StudioRender()

    ' Find the Studio Add-In
    Dim oStudioAddin As ApplicationAddIn
    Set oStudioAddin = ThisApplication.ApplicationAddIns.ItemById("{F3D38928-74D1-4814-8C24-A74CE8F3B2E3}")
       
    If oStudioAddin Is Nothing Then
        MsgBox "Inventor Studio Addin not loaded."
        Exit Sub
    End If

    ' Get the Inventor Studio object.
    Dim oInventorStudio As InventorStudioLib.InventorStudio
    Set oInventorStudio = oStudioAddin.Automation

    ' Get the environment manager for the active document.
    Dim oEnvironmentMgr As EnvironmentManager
    Set oEnvironmentMgr = ThisApplication.ActiveDocument.EnvironmentManager

    ' Get the current environment.
    Dim oCurrentEnvironment As Environment
    Dim strEditID As String
    Call oEnvironmentMgr.GetCurrentEnvironment(oCurrentEnvironment, strEditID)

    ' Activate the Studio environment.
    Dim oStudioEnvironment As Environment
    Set oStudioEnvironment = oInventorStudio.activate

    ' Get a reference to the RenderManager
    Dim oRenderManager As InventorStudioLib.RenderManager
    Set oRenderManager = oInventorStudio.RenderManager

    ' Set the active lighting style.
    oInventorStudio.ActiveLightingStyle = oInventorStudio.StudioLightingStyles.item("Pleasant")

    ' Set the Camera.
    oRenderManager.camera = oInventorStudio.StudioCameras.item("MyCamera")

    ' Set the active Scene.
    oInventorStudio.ActiveSceneStyle = oInventorStudio.StudioSceneStyles.item("Starfield")

    ' Set the output resolution to the size of the current view.
    oRenderManager.ImageWidth = ThisApplication.ActiveView.width
    oRenderManager.ImageHeight = ThisApplication.ActiveView.height
    'oRenderManager.AntiAliasing
    
    ' Render the image.
    Call oRenderManager.RenderToFile("C:\Temp\Render.bmp")

    ' Reset the environment to whatever it was before
    ' we entered the Studio environment.
    Call oEnvironmentMgr.SetCurrentEnvironment(oCurrentEnvironment)
    
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:16:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/4819899#M126083</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2014-02-17T11:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/5926870#M126084</link>
      <description>&lt;P&gt;Hi Phillippe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a problem with your function..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i use inventor 2016 and visual studio 2012.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the line "Dim oInventorStudio As InventorStudioLib.InventorStudio" give me a error "Type InventorStudioLib is not defined"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I try add reference "archon.dll" but give me a error "a reference to c:\....\archon.dll could not be added. Please make sure that the file is acessible, and that is a valid assembly or com component." I try registry the&lt;/SPAN&gt; "archon.dll"but no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 09:30:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/5926870#M126084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-27T09:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/5943931#M126085</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"I try add reference "archon.dll" but give me a error "a reference to c:\....\archon.dll could not be added. Please make sure that the file is acessible, and that is a valid assembly or com component." I try registry the&lt;/SPAN&gt; "archon.dll"but no success."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I had the same issue with Inventor 2015. I resolved it as follows&lt;/P&gt;&lt;P&gt;Go to start and in the search box type in "CMD"&lt;/P&gt;&lt;P&gt;type in "CD program files\autodesk\program files\bin" then press enter&lt;/P&gt;&lt;P&gt;type in "regsvr32 archon.dll" and press enter&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should get a dialog box that says "DLLRegisterServer in Archon.dll succeeded"&lt;/P&gt;&lt;P&gt;Then you should be good to go&lt;/P&gt;&lt;P&gt;Below you should be able to see my screenshots of doing it on 2015.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 16:36:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/5943931#M126085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-09T16:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/6250438#M126086</link>
      <description>&lt;P&gt;have seen that there is an option parameter in RenterToFile, what the values could be?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 16:12:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/6250438#M126086</guid>
      <dc:creator>daniel.hunziker</dc:creator>
      <dc:date>2016-04-04T16:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/6673142#M126087</link>
      <description>&lt;P&gt;Can someone point me in the right direction on how to use this code? do I run it as a macro or as an ilogic rule?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 23:03:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/6673142#M126087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-07T23:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/7617350#M126088</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting "Compile error: User-defined type not defined" at line: "Dim oInventorStudio As InventorStudioLib.InventorStudio".&lt;/P&gt;&lt;P&gt;I'm using Autodesk Inventor professional 2017.&lt;/P&gt;&lt;P&gt;Does this macro not work with version 2017?&lt;/P&gt;&lt;P&gt;I also couldn't find any objects linked to inventor studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Janeau&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 15:58:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/7617350#M126088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T15:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/8265711#M126089</link>
      <description>&lt;P&gt;You must add the Archon.cll to your VBA Projekt to run the code...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13.09.png" style="width: 512px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/545794i4EA1371476C58DD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="13.09.png" alt="13.09.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 13:17:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/8265711#M126089</guid>
      <dc:creator>A_Sandbote</dc:creator>
      <dc:date>2018-09-13T13:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/8450229#M126090</link>
      <description>Hello,
i have one Question about some settings of the rendermanager...
The method "RenderToFile" has some options... can someone give me the option of the NameValueMap ??? i have found nothing about it....</description>
      <pubDate>Thu, 06 Dec 2018 15:36:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/8450229#M126090</guid>
      <dc:creator>A_Sandbote</dc:creator>
      <dc:date>2018-12-06T15:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/11224114#M126091</link>
      <description>&lt;P&gt;Accessing Inventor Studio via iLogic is a game changer! Does anyone have any links handy to supporting documentation for the Studio Add In?&lt;BR /&gt;&lt;BR /&gt;Also some feedback - I've found that this iLogic Inventor Studio batch rendering will only work when the Render Settings held within the Inventor Assembly or Part file is set to "Render by iteration" via the Renderer settings found in "Render Image" control panel. If this setting is set to "Render Time" then iLogic will output a batch of blank images - at least in my experience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keen to know if others have also experienced or fixed this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 02:04:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/11224114#M126091</guid>
      <dc:creator>_KarlH</dc:creator>
      <dc:date>2022-07-06T02:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I access Inventor Studio elements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/11353041#M126092</link>
      <description>&lt;P&gt;Just a side question on Inventor Studio and batch rendering via iLogic - is there a method to check if the Inventor Studio Camera is either visible or hidden? It would be a useful toggle for the operator to switch cameras on or off for their render batch session. I had a look but couldn't identify anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_KarlH_0-1660202678562.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1102732iED4C6EDD65C5EE68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_KarlH_0-1660202678562.png" alt="_KarlH_0-1660202678562.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The quickest alternative I can think of would be to have a keyword that a user can rename camera views with, that are then whitelisting/blacklisting cameras for the batch render process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 07:25:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-do-i-access-inventor-studio-elements/m-p/11353041#M126092</guid>
      <dc:creator>_KarlH</dc:creator>
      <dc:date>2022-08-11T07:25:35Z</dc:date>
    </item>
  </channel>
</rss>

