<?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: Index was outside the bounds of the array in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10297366#M109699</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to delete some values from the excel and still i get the same mistake.&lt;/P&gt;&lt;P&gt;what I have also noticed is, the components on PlaneX are getting updated and when it's switiching to PlaneY it stops and i get that error&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 10:53:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-07T10:53:09Z</dc:date>
    <item>
      <title>Index was outside the bounds of the array</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10294524#M109695</link>
      <description>&lt;P&gt;hey everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this code that reads the length of the array and also sorts the plane distance and for some reason i get an error&lt;/P&gt;&lt;P&gt;Index was outside the bounds of the array iLogic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim PlaneX = Double&lt;BR /&gt;Dim PlaneY = Double&lt;BR /&gt;Dim lenX = 0 &lt;BR /&gt;Dim lenY = 0&lt;BR /&gt;&lt;BR /&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;xVar&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PlaneX&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;lenX&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;lenX&lt;/SPAN&gt; + 1 
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;xVar&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PLaneY&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;lenY&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;lenY&lt;/SPAN&gt; + 1 
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;


&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt; = 0 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;lenX&lt;/SPAN&gt;-2
	&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt; = 0 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;lenX&lt;/SPAN&gt;-2-&lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PlaneX&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt;) &amp;gt; &lt;SPAN style="color: #800000;"&gt;PlaneX&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt; + 1)
			&lt;SPAN style="color: #800000;"&gt;temp&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;PlaneX&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt; + 1)
			&lt;SPAN style="color: #800000;"&gt;PlaneX&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt; + 1) = &lt;SPAN style="color: #800000;"&gt;PlaneX&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt;)
			&lt;SPAN style="color: #800000;"&gt;PlaneX&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt;) = &lt;SPAN style="color: #800000;"&gt;temp&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt; = 0 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;lenY&lt;/SPAN&gt;-2
	&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt; = 0 &lt;SPAN style="color: #ff0000;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;lenY&lt;/SPAN&gt;-2-&lt;SPAN style="color: #800000;"&gt;j&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PlaneY&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt;) &amp;gt; &lt;SPAN style="color: #800000;"&gt;PlaneY&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt; + 1)
			&lt;SPAN style="color: #800000;"&gt;temp&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;PlaneY&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt; + 1)
			&lt;SPAN style="color: #800000;"&gt;PlaneY&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt; + 1) = &lt;SPAN style="color: #800000;"&gt;PlaneY&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt;)
			&lt;SPAN style="color: #800000;"&gt;PlaneY&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;h&lt;/SPAN&gt;) = &lt;SPAN style="color: #800000;"&gt;temp&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 May 2021 10:53:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10294524#M109695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-06T10:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Index was outside the bounds of the array</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10296311#M109696</link>
      <description>&lt;P&gt;Hi! I thought VB's array started with 1, not 0.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 21:52:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10296311#M109696</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2021-05-06T21:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Index was outside the bounds of the array</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10296846#M109697</link>
      <description>&lt;P&gt;hey, thanks for the reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried changing it to 1,but i still get the same error&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 06:20:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10296846#M109697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-07T06:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Index was outside the bounds of the array</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10297108#M109698</link>
      <description>&lt;P&gt;Think that error message means you are referencing a line in an array that doesn't exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So maybe you have 5 lines in the array but one of your lenx equations is asking for 6.&lt;/P&gt;&lt;P&gt;That's what I understand by that error anyway.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 08:29:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10297108#M109698</guid>
      <dc:creator>SharkDesign</dc:creator>
      <dc:date>2021-05-07T08:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Index was outside the bounds of the array</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10297366#M109699</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to delete some values from the excel and still i get the same mistake.&lt;/P&gt;&lt;P&gt;what I have also noticed is, the components on PlaneX are getting updated and when it's switiching to PlaneY it stops and i get that error&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 10:53:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10297366#M109699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-07T10:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Index was outside the bounds of the array</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10298564#M109700</link>
      <description>&lt;P&gt;Hi! The syntax does not look like VB. Is it VB? You need to declare array like the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;PlaneX&lt;/SPAN&gt; (10) &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Double&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;PlaneY&lt;/SPAN&gt; (10) &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Double&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 18:55:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10298564#M109700</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2021-05-07T18:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Index was outside the bounds of the array</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10301954#M109701</link>
      <description>&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the idea, but i have found the mistake.&lt;/P&gt;&lt;P&gt;someone changed some user paramters and they where lower the what the code was suppose to read, hence the error.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 07:22:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/index-was-outside-the-bounds-of-the-array/m-p/10301954#M109701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-10T07:22:39Z</dc:date>
    </item>
  </channel>
</rss>

