<?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: Difference between demoted assembly and new assembly in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/difference-between-demoted-assembly-and-new-assembly/m-p/5634494#M118479</link>
    <description>&lt;P&gt;Nevermind, I restarted Inventor and now the code works as expected.&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2015 12:21:36 GMT</pubDate>
    <dc:creator>andrewiv</dc:creator>
    <dc:date>2015-05-14T12:21:36Z</dc:date>
    <item>
      <title>Difference between demoted assembly and new assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/difference-between-demoted-assembly-and-new-assembly/m-p/5633255#M118477</link>
      <description>&lt;P&gt;Is there any difference between an assembly created using the new command and one created by demoting parts into it?&amp;nbsp; I have an ilogic code that will not run on an assembly that was created using the demote command, but it runs fine on an assembly that was created using the new command.&amp;nbsp; Both were created using the same template.&amp;nbsp; When I try to run the code on the demoted assembly I get this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ilogic error.PNG" border="0" src="https://forums.autodesk.com/t5/image/serverpage/image-id/168288i02A99604CF33A43E/image-size/original?v=mpbl-1&amp;amp;px=-1" title="ilogic error.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have narrowed it down to this area of the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'define Assembly Component Definition
Dim AsmCompDef As AssemblyComponentDefinition
AsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition&lt;/PRE&gt;&lt;P&gt;If&amp;nbsp;I comment out the last line&amp;nbsp;then I do not get the error so I think that&amp;nbsp;the error comes from the ComponentDefinition object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 15:41:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/difference-between-demoted-assembly-and-new-assembly/m-p/5633255#M118477</guid>
      <dc:creator>andrewiv</dc:creator>
      <dc:date>2015-05-13T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between demoted assembly and new assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/difference-between-demoted-assembly-and-new-assembly/m-p/5633499#M118478</link>
      <description>When is the code being run?&lt;BR /&gt;&lt;BR /&gt;Is it possible it's not the active document when run?</description>
      <pubDate>Wed, 13 May 2015 17:41:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/difference-between-demoted-assembly-and-new-assembly/m-p/5633499#M118478</guid>
      <dc:creator>mslosar</dc:creator>
      <dc:date>2015-05-13T17:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between demoted assembly and new assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/difference-between-demoted-assembly-and-new-assembly/m-p/5634494#M118479</link>
      <description>&lt;P&gt;Nevermind, I restarted Inventor and now the code works as expected.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 12:21:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/difference-between-demoted-assembly-and-new-assembly/m-p/5634494#M118479</guid>
      <dc:creator>andrewiv</dc:creator>
      <dc:date>2015-05-14T12:21:36Z</dc:date>
    </item>
  </channel>
</rss>

