<?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: iLogic to verify multiple measurements in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6811372#M69377</link>
    <description>&lt;P&gt;Owner 2229 - Thank you very much!&amp;nbsp; It's been quite a challenge for me learning iLogic coding on what's proving to be a fairly complex assembly.&amp;nbsp; The lack of a true manual that describes different commands is frustrating at times.&amp;nbsp; I greatly appreciate you taking the time to explain things so thoroughly for me.&amp;nbsp; The code works perfectly, by the way.&amp;nbsp; Thanks!!!!&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2017 18:37:35 GMT</pubDate>
    <dc:creator>jfenter</dc:creator>
    <dc:date>2017-01-17T18:37:35Z</dc:date>
    <item>
      <title>iLogic to verify multiple measurements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6808830#M69357</link>
      <description>&lt;P&gt;I would like to write a rule to verify that a group of various dimensions all exceed a baseline dimension.&amp;nbsp; If a given distance is less than the baseline dimension, I will have a message box pop up to alert the user of the situation.&amp;nbsp; I would like this rule to run after the parameters have been updated.&amp;nbsp; Is there a way to check these measurements simultaneously against the baseline?&amp;nbsp;&amp;nbsp; I'm sure I could write a series of If-Then statements to satisfy each variable.&amp;nbsp; I am a beginner using iLogic and assume there would be a better way to achieve the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Rule to get distance between rails&lt;/SPAN&gt;

&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Distance between left rail and single rail&lt;/SPAN&gt;
&lt;SPAN&gt;myDist1&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MinimumDistance&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Work Plane22&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Work Plane12&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Distance between right rail and single rail&lt;/SPAN&gt;
&lt;SPAN&gt;myDist2&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MinimumDistance&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Work Plane23&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Work Plane13&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Distance between left rail and double rail&lt;/SPAN&gt;
&lt;SPAN&gt;myDist3&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MinimumDistance&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Work Plane22&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Work Plane20&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Distance between right rail and double rail&lt;/SPAN&gt;
&lt;SPAN&gt;myDist4&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MinimumDistance&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Work Plane23&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Work Plane21&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Distance between single rail and double rail&lt;/SPAN&gt;
&lt;SPAN&gt;myDist5&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MinimumDistance&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Work Plane13&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Work Plane20&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;honeycombmin&lt;/SPAN&gt;&lt;SPAN&gt;=230&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 19:16:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6808830#M69357</guid>
      <dc:creator>jfenter</dc:creator>
      <dc:date>2017-01-16T19:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to verify multiple measurements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6809836#M69360</link>
      <description>&lt;P&gt;Hi, do you want to do the measuring between all workplanes or just some specific ones?&lt;/P&gt;
&lt;P&gt;I'm asking because we can either go through all&amp;nbsp;of them (using "For Each") or just through a list of them.&lt;/P&gt;
&lt;P&gt;I mean, you can use it like this if the workplanes (or their names) don't change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case I'll use the later option:&lt;/P&gt;
&lt;PRE&gt;Sub Main()
	AddMeasurement("&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Work Plane22&lt;/STRONG&gt;&lt;/FONT&gt;", "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Work Plane12&lt;/STRONG&gt;&lt;/FONT&gt;") &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Left rail and single rail&lt;/STRONG&gt;&lt;/FONT&gt;
	AddMeasurement("&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Work Plane23&lt;/STRONG&gt;&lt;/FONT&gt;", "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Work Plane13&lt;/STRONG&gt;&lt;/FONT&gt;") &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Right rail and single rail&lt;/STRONG&gt;&lt;/FONT&gt;
	AddMeasurement("&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Work Plane22&lt;/STRONG&gt;&lt;/FONT&gt;", "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Work Plane20&lt;/STRONG&gt;&lt;/FONT&gt;") &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Left rail and double rail&lt;/STRONG&gt;&lt;/FONT&gt;
	AddMeasurement("&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Work Plane23&lt;/STRONG&gt;&lt;/FONT&gt;", "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Work Plane21&lt;/STRONG&gt;&lt;/FONT&gt;") &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Right rail and double rail&lt;/STRONG&gt;&lt;/FONT&gt;
	AddMeasurement("&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Work Plane13&lt;/STRONG&gt;&lt;/FONT&gt;", "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Work Plane20&lt;/STRONG&gt;&lt;/FONT&gt;") &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Single rail and double rail&lt;/STRONG&gt;&lt;/FONT&gt;
	Dim HoneyCombMin As Double = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;230&lt;/STRONG&gt;&lt;/FONT&gt;
	Dim MOL As String = vbnullstring
	For i = 0 To MyDist.Lenght - 1 &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Go through each measurement&lt;/STRONG&gt;&lt;/FONT&gt;
		If MyDist(i) &amp;gt;= HoneyCombMin Then Continue For
		If MOL &amp;lt;&amp;gt; vbnullstring Then MOL = MOL &amp;amp; vbnewline
		MOL = MOL &amp;amp; "Value " &amp;amp; i + 1 &amp;amp; " is less than " &amp;amp; HoneyCombMin
	Next
	If MOL &amp;lt;&amp;gt; vbnullstring Then MsgBox(MOL) &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Show the results (if any)&lt;/STRONG&gt;&lt;/FONT&gt;
End Sub

Private MyDist(0) As Double &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Local variable to store the measurements&lt;/STRONG&gt;&lt;/FONT&gt;

Private Sub AddMeasurement(WorkPlaneA As String, WorkPlaneB As String)
	If Not MyDist(MyDist.Lenght - 1) Is Nothing Then
		ReDim Preserve MyDist(MyDist.Lenght)
	End If
	MyDist(MyDist.Lenght - 1) = Measure.MinimumDistance(WorkPlaneA, WorkPlaneB)
End Sub&lt;/PRE&gt;
&lt;P&gt;We could also add the workplanes' names to an array, so we could use them in the result instead of "value x", so let me know if this is the way you want it to go.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 09:07:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6809836#M69360</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-01-17T09:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to verify multiple measurements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6810510#M69368</link>
      <description>&lt;P&gt;Owner2229,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, thanks for the help!&amp;nbsp; Upon loading the code you have written, I did get a return error on the follow line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;MyDist&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MyDist&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Length&lt;/SPAN&gt; &lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;"Error on line 20:&amp;nbsp; 'Is' operator does not accept operands of type 'Double'.&amp;nbsp; Operands must be reference or nullable types."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The assembly this code will work with is going to be a template assembly for the other engineers in my department to create various panels.&amp;nbsp; The panel assemblies could exist in one of three ways:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) With no inner rails at all - Single and Double Rail would be inactive&lt;/P&gt;&lt;P&gt;2) With one inner rail - Single rail active, double rail inactive (The x-axis position of the inner rails can vary as well as the width of the rails)&lt;/P&gt;&lt;P&gt;3) With two inners rails - both Single and Double rails are active (The x-axis position of the inner rails can vary as well as the width of the rails)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I planned on having a single measurement rule to run controlled by a Case statement for each panel type, but again, if there is a better way I'm all for it.&amp;nbsp; The work plane names won't change, but they will toggle on and off with each different panel type.&amp;nbsp; I should also mention the corresponding rails are created as solid bodies, but since the measurement is between the work planes I don't think that should matter.&amp;nbsp; This rule would run as a check to be sure that each of the dimensions exceed the honeycomb minimum of 230mm.&amp;nbsp; If any one of the dimensions would be less than 230, the message box would pop up to alert the user to change parameters to an acceptable distance.&amp;nbsp; The message box would not have to specifically call out which dimension is at fault, simply just notify the user of the discrepancy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd also like to ask where I can get more information about the specific code you're writing.&amp;nbsp; I have limited iLogic experience and no Visual Basic experience at all.&amp;nbsp; Most of the code you have written I do not understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 14:00:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6810510#M69368</guid>
      <dc:creator>jfenter</dc:creator>
      <dc:date>2017-01-17T14:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to verify multiple measurements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6811093#M69375</link>
      <description>&lt;P&gt;Change the "Is" in that line to an "=".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Is keyword is only valid when doing comparisons of objects, but for variables of basic types the "=" sign performs the same function.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 17:04:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6811093#M69375</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2017-01-17T17:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to verify multiple measurements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6811357#M69376</link>
      <description>&lt;P&gt;Alright, my misstake, here's the corrected code with some more descriptions, so you could learn from it.&lt;/P&gt;
&lt;P&gt;First of I have put the main part of the rule in the sub routine "Main". It's required by iLogic when you want to split your code to more parts (sub routines and functions) and it has to be called "Main" so iLogic know it has to be executed when the rule starts.&lt;/P&gt;
&lt;P&gt;Sub routine is a part of code that will execute before the code goes to another line.&lt;/P&gt;
&lt;P&gt;Function does the same, except it also returns a value.&lt;/P&gt;
&lt;P&gt;I hope it's clear enough, ask if you need futher explenation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()
	&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Here I'm adding all measurements using the new sub routine called "AddMeasurement"&lt;/STRONG&gt;&lt;/FONT&gt;
	AddMeasurement("Work Plane22", "Work Plane12") &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Left rail and single rail&lt;/STRONG&gt;&lt;/FONT&gt;
	AddMeasurement("Work Plane23", "Work Plane13") &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Right rail and single rail&lt;/STRONG&gt;&lt;/FONT&gt;
	AddMeasurement("Work Plane22", "Work Plane20") &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Left rail and double rail&lt;/STRONG&gt;&lt;/FONT&gt;
	AddMeasurement("Work Plane23", "Work Plane21") &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Right rail and double rail&lt;/STRONG&gt;&lt;/FONT&gt;
	AddMeasurement("Work Plane13", "Work Plane20") &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Single rail and double rail&lt;/STRONG&gt;&lt;/FONT&gt;
	Dim HoneyCombMin As Double = 230 &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Definine the value for comparison&lt;/STRONG&gt;
	&lt;STRONG&gt;' Here I'm defining a text variable with no value&lt;/STRONG&gt;&lt;/FONT&gt;
	Dim MOL As String = vbnullstring
	&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Loop throught all measurements stored in the "MyDist" variable array&lt;/STRONG&gt;&lt;/FONT&gt;
	For i = 0 To MyDist.Lenght - 1 'Go through each measurement
		&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' If the value in the array is bigger or equal to HoneyCombMin skipp this value&lt;/STRONG&gt;&lt;/FONT&gt;
		If MyDist(i) &amp;gt;= HoneyCombMin Then Continue For
		&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' If the variable "MOL" isn't empty add a new row to it, so the new value goes there&lt;/STRONG&gt;&lt;/FONT&gt;
		If MOL &amp;lt;&amp;gt; vbnullstring Then MOL = MOL &amp;amp; vbnewline
		&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Add the value to the "MOL" variable along with some text&lt;/STRONG&gt;&lt;/FONT&gt;
		MOL = MOL &amp;amp; "Value Nr." &amp;amp; i + 1 &amp;amp; " (" &amp;amp; MyDist(i) &amp;amp; ") is less than " &amp;amp; HoneyCombMin
	Next
	&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' If the "MOL" variable is not empty show a message with it's content&lt;/STRONG&gt;&lt;/FONT&gt;
	If MOL &amp;lt;&amp;gt; vbnullstring Then MsgBox(MOL) &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Show the results (if any)&lt;/STRONG&gt;&lt;/FONT&gt;
End Sub
&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' The definition of "MyDist" variable of the type "Double" = number with decimals&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;' The zero defines this variable as array with one "slot", as the counting starts from zero&lt;/STRONG&gt;&lt;/FONT&gt;
Private MyDist(0) As Double 'Local variable to store the measurements
&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' The definition of the sub routine "AddMeasurement".&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' In the brackets are required input values.&lt;BR /&gt;' "As String" means the accepted values must be text&lt;/STRONG&gt;&lt;/FONT&gt;
Private Sub AddMeasurement(WorkPlaneA As String, WorkPlaneB As String)
	&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' If the variable "MyDist" is not empty we need to add another "slot"&lt;/STRONG&gt;&lt;/FONT&gt;
	If Not MyDist(MyDist.Lenght - 1) = Nothing Then
		&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Since the lenght is 1 and the counting starts from 0, the value will grow by 1&lt;/STRONG&gt;&lt;/FONT&gt;
		ReDim Preserve MyDist(MyDist.Lenght)
	End If
	&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' Store the measurement in the last slot. Number of slots - 1 (counting starts from zero)&lt;/STRONG&gt;&lt;/FONT&gt;
	MyDist(MyDist.Lenght - 1) = Measure.MinimumDistance(WorkPlaneA, WorkPlaneB)
End Sub &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;' The end of the sub routine&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:38:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6811357#M69376</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-01-17T18:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to verify multiple measurements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6811372#M69377</link>
      <description>&lt;P&gt;Owner 2229 - Thank you very much!&amp;nbsp; It's been quite a challenge for me learning iLogic coding on what's proving to be a fairly complex assembly.&amp;nbsp; The lack of a true manual that describes different commands is frustrating at times.&amp;nbsp; I greatly appreciate you taking the time to explain things so thoroughly for me.&amp;nbsp; The code works perfectly, by the way.&amp;nbsp; Thanks!!!!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:37:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6811372#M69377</guid>
      <dc:creator>jfenter</dc:creator>
      <dc:date>2017-01-17T18:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to verify multiple measurements</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6811399#M69378</link>
      <description>&lt;P&gt;You're welcomed. You can find some API tutorials in Inventor:&lt;/P&gt;
&lt;P&gt;"HELP" &amp;gt; "Programming / API Help"&lt;/P&gt;
&lt;P&gt;And there search for what you're looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or just ask here on forum and describe what you need.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:47:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-verify-multiple-measurements/m-p/6811399#M69378</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-01-17T18:47:02Z</dc:date>
    </item>
  </channel>
</rss>

