<?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: Marshal.GetActiveObject fails with InventorServer Object. Help! in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/8437265#M91939</link>
    <description>&lt;P&gt;Hi Arthur,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I didn't get you. Maybe you would like to do your solution clearer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Nov 2018 19:49:47 GMT</pubDate>
    <dc:creator>KKizildemir</dc:creator>
    <dc:date>2018-11-30T19:49:47Z</dc:date>
    <item>
      <title>Marshal.GetActiveObject fails with InventorServer Object. Help!</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/8435604#M91898</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'am trying to write some code on VS .NET Framework 4.6.1 and to generate a .dll file for my Inventor model that works on C360. So I can not use 'Inventor.Application' object. That's OK.&lt;/P&gt;
&lt;P&gt;When I use 'Inventor.InventorServer' object,&amp;nbsp;I can't set that object reference to&amp;nbsp;the&amp;nbsp;intance of my object. I think 'Marshal.GetActiveObject' does not work in this case. So what is the solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the error message:&amp;nbsp;Object reference not set to an instance of an object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is&amp;nbsp;related part of my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        Dim oThisServer As Inventor.InventorServer = Nothing
        Try
            oThisServer = Marshal.GetActiveObject("Inventor.InventorServer")
        Catch ex As Exception
            Exit Sub
        End Try&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:12:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/8435604#M91898</guid>
      <dc:creator>KKizildemir</dc:creator>
      <dc:date>2018-11-30T09:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Marshal.GetActiveObject fails with InventorServer Object. Help!</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/8435686#M91900</link>
      <description>Is inventor server already running.&lt;BR /&gt;Otherwise use createobject.....</description>
      <pubDate>Fri, 30 Nov 2018 10:00:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/8435686#M91900</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-11-30T10:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Marshal.GetActiveObject fails with InventorServer Object. Help!</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/8437265#M91939</link>
      <description>&lt;P&gt;Hi Arthur,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I didn't get you. Maybe you would like to do your solution clearer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 19:49:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/8437265#M91939</guid>
      <dc:creator>KKizildemir</dc:creator>
      <dc:date>2018-11-30T19:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Marshal.GetActiveObject fails with InventorServer Object. Help!</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/10513440#M127085</link>
      <description>&lt;P&gt;I think that Inventor Server can only be used in the context of a job.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GetActiveObject() can not get an instance, it will always returns null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inventor Server is started from&amp;nbsp;&lt;SPAN&gt;C:\Program Files\Autodesk\Vault Client 20xx\Explorer\Inventor Server\Bin\VaultInventorServer.exe and then there is a specific process to connect to the running instance which can not be used by an external developer (only Autodesk can use this).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 08:30:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/10513440#M127085</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2021-08-02T08:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Marshal.GetActiveObject fails with InventorServer Object. Help!</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/10513915#M127091</link>
      <description>&lt;P&gt;That is correct.&lt;/P&gt;
&lt;P&gt;You can only use it with a Vault JobProcessor Job!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 12:17:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/marshal-getactiveobject-fails-with-inventorserver-object-help/m-p/10513915#M127091</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-08-02T12:17:59Z</dc:date>
    </item>
  </channel>
</rss>

