<?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: Error message from ilogic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/8055877#M144642</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you please share the details of the solution,&amp;nbsp;I have the same issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jun 2018 13:17:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-08T13:17:41Z</dc:date>
    <item>
      <title>Error message from ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/6678892#M144640</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am making a drawing of an iForm part and am trying to get inventor to automatically make some of the dimensions. I follow this tutorial:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=bcOvYc6rNUk" target="_blank"&gt;https://www.youtube.com/watch?v=bcOvYc6rNUk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I insert the code marked in red below, I this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Error in rule:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Unable to cast COM object of type 'System.__ComObject' to interface type 'Inventor.AssemblyDocument'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{29F0D465-C114-11D2-B77F-0060B0F159EF}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no clue why I get this error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;'---INITIAL SETUP---&lt;/P&gt;&lt;P&gt;'References this document&lt;BR /&gt;Dim oDrawDoc As DrawingDocument&lt;BR /&gt;oDrawDoc = ThisDoc.Document&lt;BR /&gt;&lt;BR /&gt;'References this drawing sheet&lt;BR /&gt;Dim oSheet As Sheet&lt;BR /&gt;oSheet = oDrawDoc.ActiveSheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'References this drawing view&lt;BR /&gt;Dim oView As DrawingView&lt;BR /&gt;oView = ActiveSheet.View("1").View&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'References this drawing view model&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Dim oAssyDoc As AssemblyDocument&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;oAssyDoc = ActiveSheet.View("1").ModelDocument&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;'Readies code for creation of reference points for dimension placement&lt;BR /&gt;Dim oTG As TransientGeometry&lt;BR /&gt;oTG = ThisApplication.TransientGeometry&lt;BR /&gt;&lt;BR /&gt;'Readies code for creation of general dimensions&lt;BR /&gt;Dim oGeneralDims As GeneralDimensions&lt;BR /&gt;oGeneralDims = oSheet.DrawingDimensions.GeneralDimensions&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 09:21:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/6678892#M144640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-10T09:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error message from ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/6678981#M144641</link>
      <description>&lt;P&gt;Found the solution&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 09:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/6678981#M144641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-10T09:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error message from ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/8055877#M144642</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you please share the details of the solution,&amp;nbsp;I have the same issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 13:17:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/8055877#M144642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-08T13:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error message from ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/11525421#M144643</link>
      <description>&lt;P&gt;I'm having the same issue. Is there a solution?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 13:10:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/11525421#M144643</guid>
      <dc:creator>Sandy3EG8M</dc:creator>
      <dc:date>2022-11-02T13:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error message from ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/11525444#M144644</link>
      <description>&lt;P&gt;Ah&lt;/P&gt;&lt;P&gt;I was in a part not an assembly.&lt;/P&gt;&lt;P&gt;Wasn't thinking!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 13:19:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-message-from-ilogic/m-p/11525444#M144644</guid>
      <dc:creator>Sandy3EG8M</dc:creator>
      <dc:date>2022-11-02T13:19:48Z</dc:date>
    </item>
  </channel>
</rss>

