<?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 Simple FOR LOOP crashes with a Parameter error for this one Component for no known reason in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9715947#M115283</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue, and I do not know what is causing it. See image "&lt;STRONG&gt;Parameter is incorrect&lt;/STRONG&gt;". When my For Loop is looping it always hangs up on the same part "&lt;STRONG&gt;Jumper WP:16&lt;/STRONG&gt;". It gives me a "parameter is incorrect" see image "&lt;STRONG&gt;Parameter is incorrect&lt;/STRONG&gt;". It handles every other part just fine but this one. I have no idea what is going on.&lt;/P&gt;&lt;P&gt;See my browser tree "&lt;STRONG&gt;Parameter is incorrect - 3&lt;/STRONG&gt;" image so you can see how the assembly model is built. I also put an image of the Visual Studio &lt;STRONG&gt;Autos&lt;/STRONG&gt; window, so you can see nothing strange is going on. See image "&lt;STRONG&gt;Parameter is&lt;/STRONG&gt; &lt;STRONG&gt;incorrect - 2&lt;/STRONG&gt;". At first, I thought it did not like the 2 digit place for the component count, but it did count some with 2 digits. Any help would be grateful.&amp;nbsp;&lt;/P&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;Mike Munson&lt;/P&gt;&lt;P&gt;Inventor 2018 Pro&lt;/P&gt;&lt;P&gt;Visual Studio 2017&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2020 19:23:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-27T19:23:23Z</dc:date>
    <item>
      <title>Simple FOR LOOP crashes with a Parameter error for this one Component for no known reason</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9715947#M115283</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue, and I do not know what is causing it. See image "&lt;STRONG&gt;Parameter is incorrect&lt;/STRONG&gt;". When my For Loop is looping it always hangs up on the same part "&lt;STRONG&gt;Jumper WP:16&lt;/STRONG&gt;". It gives me a "parameter is incorrect" see image "&lt;STRONG&gt;Parameter is incorrect&lt;/STRONG&gt;". It handles every other part just fine but this one. I have no idea what is going on.&lt;/P&gt;&lt;P&gt;See my browser tree "&lt;STRONG&gt;Parameter is incorrect - 3&lt;/STRONG&gt;" image so you can see how the assembly model is built. I also put an image of the Visual Studio &lt;STRONG&gt;Autos&lt;/STRONG&gt; window, so you can see nothing strange is going on. See image "&lt;STRONG&gt;Parameter is&lt;/STRONG&gt; &lt;STRONG&gt;incorrect - 2&lt;/STRONG&gt;". At first, I thought it did not like the 2 digit place for the component count, but it did count some with 2 digits. Any help would be grateful.&amp;nbsp;&lt;/P&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;Mike Munson&lt;/P&gt;&lt;P&gt;Inventor 2018 Pro&lt;/P&gt;&lt;P&gt;Visual Studio 2017&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 19:23:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9715947#M115283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-27T19:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Simple FOR LOOP crashes with a Parameter error for this one Component for no known reason</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9715967#M115284</link>
      <description>&lt;P&gt;In you second picture it says X = 21, but I only count 20 occurrences in your third picture. I think it's trying to get an occurrence that doesn't exist. I'm not sure where your CenterLineToolModule.AssyCompOccCount is getting it's number, but you might want to run a test and see what it equals.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 19:37:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9715967#M115284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-27T19:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Simple FOR LOOP crashes with a Parameter error for this one Component for no known reason</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9715973#M115285</link>
      <description>&lt;P&gt;I will take a look. It is actually counting AllLeafOccurences. Maybe, I need to change my approach. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 19:41:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9715973#M115285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-27T19:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Simple FOR LOOP crashes with a Parameter error for this one Component for no known reason</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9715992#M115286</link>
      <description>&lt;P&gt;I think leaf occurrences will include occurrences in your sub assemblies as well. I think you want something like AssemblyDocument.ComponentDefinition.Occurrences.Count for just the occurrences in your top assembly. If you are trying to check for sketches in the occurrences in sub assemblies as well, you will probably need a different approach.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 19:54:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9715992#M115286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-27T19:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Simple FOR LOOP crashes with a Parameter error for this one Component for no known reason</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9716014#M115287</link>
      <description>&lt;P&gt;I got it. I needed to go to the AllLeafOccurences, so I was not going deep enough. Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 20:11:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/simple-for-loop-crashes-with-a-parameter-error-for-this-one/m-p/9716014#M115287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-27T20:11:25Z</dc:date>
    </item>
  </channel>
</rss>

