<?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 code giving an error when executed in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305163#M137709</link>
    <description>&lt;P&gt;Thanks, that works. But I still get the "undandled excetion" error dialog.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2012 22:53:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-24T22:53:47Z</dc:date>
    <item>
      <title>iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3303677#M137702</link>
      <description>Hi, I have been writing a few routines to augment our system here, with great success. However, I have one iLogic routine that is giving me an error whenever I run it. Selecting continue allows it run as expected. Basically, it is to remind designers to set the material type to other than “Default”. Here is the code: Materialsddd = 0' deleted parameter materialName = ThisDoc.Document.ComponentDefinition.Material.Name If materialName = "Default" Then MultiValue.List("MName") = iProperties.Materials MName = InputListBox("Select Material", MultiValue.List("MName"), Mname, Title := "Select Type", ListName := "MM List") iProperties.Material = Mname iLogicVb.UpdateWhenDone = True The Parameter MName does exist as a mulitlist parameter. End If If someone could run their eyes over it and let me know how to fix this. Or, turn off the JIT error box? Much appreciated.</description>
      <pubDate>Mon, 23 Jan 2012 23:08:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3303677#M137702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-23T23:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3303865#M137703</link>
      <description>&lt;P&gt;Your code is very confusing. Can you post it back with indentations and individual lines per code runs?&lt;/P&gt;&lt;P&gt;Thought initially would be to create a list of the proper materials you want normally using ilogic and using a Radio box list to select from.&amp;nbsp; I am assuming the material can be selected in iproproperties and populated into materials selection list?.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 05:40:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3303865#M137703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-24T05:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305109#M137704</link>
      <description>&lt;P&gt;I attached a working version of your rule in the file SelectMaterials.txt&lt;/P&gt;
&lt;P&gt;Inventor parameter names are case sensitive.&amp;nbsp; You had "Mname" instead of "MName" in a few places.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 22:30:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305109#M137704</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2012-01-24T22:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305119#M137705</link>
      <description>Thanks for the heads up. I really should have checked that first. But unfortunately, it still gives me the "unhandled exception" error. ????? Any ideas?</description>
      <pubDate>Tue, 24 Jan 2012 22:37:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305119#M137705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-24T22:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305139#M137706</link>
      <description>&lt;P&gt;Can you post the part file?&lt;/P&gt;
&lt;P&gt;What are the details of the error message?&amp;nbsp; If it has a More Info tab, please click on that and copy and paste the text here.&amp;nbsp; It might have some useful info.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 22:44:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305139#M137706</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2012-01-24T22:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305149#M137707</link>
      <description>&lt;P&gt;Here's a better version of the rule.&amp;nbsp; This one will&amp;nbsp;not throw&amp;nbsp;an error&amp;nbsp;if&amp;nbsp;you to close the dialog without clicking OK.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 22:47:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305149#M137707</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2012-01-24T22:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305155#M137708</link>
      <description>&lt;P&gt;Part file attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message details attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 22:49:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305155#M137708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-24T22:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305163#M137709</link>
      <description>&lt;P&gt;Thanks, that works. But I still get the "undandled excetion" error dialog.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 22:53:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305163#M137709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-24T22:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305169#M137710</link>
      <description>&lt;P&gt;Error screen capture of the dialog attached fyi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 22:58:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305169#M137710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-24T22:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305181#M137711</link>
      <description>&lt;P&gt;Code attached (formatted)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 23:05:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305181#M137711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-24T23:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305209#M137712</link>
      <description>&lt;P&gt;Here is an interesting tid bit. I changed the iLogic Form section that was running the rule “Material” from being an external rule on the server to a local rule saved within the document (part file) and all the errors disappeared….!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting eh……Maybe a trap for young players?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do believe I've fixed it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your help, appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 23:47:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305209#M137712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-24T23:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305335#M137713</link>
      <description>&lt;P&gt;Here's a version of your part&amp;nbsp;containing the&amp;nbsp;modified rule.&amp;nbsp; It should work OK.&lt;/P&gt;
&lt;P&gt;I also attached a version of the rule that will work as an external rule.&amp;nbsp; In an external rule, you can't access a parameter such as MName directly as a variable.&amp;nbsp; You have to use the Parameter function, e.g. Parameter("MName").&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 02:59:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305335#M137713</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2012-01-25T02:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code giving an error when executed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305361#M137714</link>
      <description>&lt;P&gt;Thanks Mike. Your'e a champion.......&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 04:12:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-giving-an-error-when-executed/m-p/3305361#M137714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-25T04:12:21Z</dc:date>
    </item>
  </channel>
</rss>

