<?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 Error Message in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8340981#M90209</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5677853"&gt;@anoor&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not certain, but I think the error might be coming from the use of quote symbols. Note that you can use CHR(34) instead of &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if this resolves the issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;If Plate_Diameter = 4 ft  Then
Parameter("Dia") = "4'-0" &amp;amp; Chr(34)
Parameter("THK") = "1/2" &amp;amp; Chr(34)
Cutout_Length = 18 in
Cutout_QTY = 14 ul

Else If Plate_Diameter = 6 ft  Then
Parameter("Dia") = "6'-0" &amp;amp; Chr(34)
Parameter("THK") = "1/2" &amp;amp; Chr(34)
Cutout_Length = 30 in
Cutout_QTY = 14 ul

Else If Plate_Diameter = 8 ft  Then
Parameter("Dia") = "8'-0" &amp;amp; Chr(34)
Parameter("THK") = "1/2" &amp;amp; Chr(34)
Cutout_Length = 36 in
Cutout_QTY = 14 ul

End If&lt;/PRE&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Oct 2018 15:47:41 GMT</pubDate>
    <dc:creator>Curtis_Waguespack</dc:creator>
    <dc:date>2018-10-17T15:47:41Z</dc:date>
    <item>
      <title>iLogic Error Message</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8340898#M90206</link>
      <description>&lt;P&gt;I'm trying to write some code to change the diameter of a plate and Inventor lets me add a rule and type in the code but then when i try to 'save' or 'save&amp;amp;run' I get this message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-10-17 11_18_03-Edit Rule_ Diameter.jpg" style="width: 552px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/558641iAA7A9E8E16856C41/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-10-17 11_18_03-Edit Rule_ Diameter.jpg" alt="2018-10-17 11_18_03-Edit Rule_ Diameter.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:21:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8340898#M90206</guid>
      <dc:creator>anoor</dc:creator>
      <dc:date>2018-10-17T15:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Error Message</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8340907#M90207</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5677853"&gt;@anoor&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Programming questions of this type are best posted on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Inventor Customization forum:&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120" target="_blank"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With that in mind, from your screen grab it looks like your file name formatting is not correct... can you post the code and some more info on the file name,&amp;nbsp;and more specifics concerning what you're attempting to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8340907#M90207</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2018-10-17T15:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Error Message</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8340924#M90208</link>
      <description>&lt;P&gt;This is the code I created. It's just a simple If/Then statement:&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Plate_Diameter&lt;/SPAN&gt; = 4 ft  &lt;SPAN&gt;Then&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Dia"&lt;/SPAN&gt;) = &lt;SPAN&gt;"4'-0"""&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"THK"&lt;/SPAN&gt;) = &lt;SPAN&gt;"1/2"""&lt;/SPAN&gt;
&lt;SPAN&gt;Cutout_Length&lt;/SPAN&gt; = 18 in
&lt;SPAN&gt;Cutout_QTY&lt;/SPAN&gt; = 14 ul

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Plate_Diameter&lt;/SPAN&gt; = 6 ft  &lt;SPAN&gt;Then&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Dia"&lt;/SPAN&gt;) = &lt;SPAN&gt;"6'-0"""&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"THK"&lt;/SPAN&gt;) = &lt;SPAN&gt;"1/2"""&lt;/SPAN&gt;
&lt;SPAN&gt;Cutout_Length&lt;/SPAN&gt; = 30 in
&lt;SPAN&gt;Cutout_QTY&lt;/SPAN&gt; = 14 ul

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Plate_Diameter&lt;/SPAN&gt; = 8 ft  &lt;SPAN&gt;Then&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Dia"&lt;/SPAN&gt;) = &lt;SPAN&gt;"8'-0"""&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"THK"&lt;/SPAN&gt;) = &lt;SPAN&gt;"1/2"""&lt;/SPAN&gt;
&lt;SPAN&gt;Cutout_Length&lt;/SPAN&gt; = 36 in
&lt;SPAN&gt;Cutout_QTY&lt;/SPAN&gt; = 14 ul

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I don't use iLogic much, but I have written this type of code hundreds of times and I've not had any issues with it until now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:29:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8340924#M90208</guid>
      <dc:creator>anoor</dc:creator>
      <dc:date>2018-10-17T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Error Message</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8340981#M90209</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5677853"&gt;@anoor&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not certain, but I think the error might be coming from the use of quote symbols. Note that you can use CHR(34) instead of &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if this resolves the issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;If Plate_Diameter = 4 ft  Then
Parameter("Dia") = "4'-0" &amp;amp; Chr(34)
Parameter("THK") = "1/2" &amp;amp; Chr(34)
Cutout_Length = 18 in
Cutout_QTY = 14 ul

Else If Plate_Diameter = 6 ft  Then
Parameter("Dia") = "6'-0" &amp;amp; Chr(34)
Parameter("THK") = "1/2" &amp;amp; Chr(34)
Cutout_Length = 30 in
Cutout_QTY = 14 ul

Else If Plate_Diameter = 8 ft  Then
Parameter("Dia") = "8'-0" &amp;amp; Chr(34)
Parameter("THK") = "1/2" &amp;amp; Chr(34)
Cutout_Length = 36 in
Cutout_QTY = 14 ul

End If&lt;/PRE&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:47:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8340981#M90209</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2018-10-17T15:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Error Message</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8452479#M92196</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5677853"&gt;@anoor&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to write some code to change the diameter of a plate and Inventor lets me add a rule and type in the code but then when i try to 'save' or 'save&amp;amp;run' I get this message:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-10-17 11_18_03-Edit Rule_ Diameter.jpg" style="width: 552px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/558641iAA7A9E8E16856C41/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-10-17 11_18_03-Edit Rule_ Diameter.jpg" alt="2018-10-17 11_18_03-Edit Rule_ Diameter.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;I get the same error message, I woder if you came to a solution for that!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best regard&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mamo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 12:30:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-error-message/m-p/8452479#M92196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-07T12:30:20Z</dc:date>
    </item>
  </channel>
</rss>

