<?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: X is not valid? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947202#M130473</link>
    <description>I can see a workaround where you'd make addition parameters that have the value 3" x 2" and then write the code to say if PlateSize = NewParameter then ect.... It's a fudge but it should work and keep you moving forward.</description>
    <pubDate>Wed, 05 Jun 2013 11:20:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-06-05T11:20:36Z</dc:date>
    <item>
      <title>X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947182#M130468</link>
      <description>&lt;P&gt;Hard to explain this but I wil do my best.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Making a part that will have the size as an option to pick. Issue is Ilogic does not like it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have a list that has sizes like:&lt;/P&gt;&lt;P&gt;3" X 2"&lt;/P&gt;&lt;P&gt;4" X 2"&lt;/P&gt;&lt;P&gt;4" X 4"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I put in the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;If Plate_Size = "3" X 2"" Then
	Parameter("Dim_X") = 3
	Parameter("Dim_Y") = 2
	Parameter("Foot_Code") = "A"

ElseIf Plate_Size = "4" X 2"" Then
	Parameter("Dim_X") = 4
	Parameter("Dim_Y") = 2
	Parameter("Foot_Code") = "B"

End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;it gives me an error&lt;/P&gt;&lt;P&gt;Error on Line 4 : End of statement expected.&lt;/P&gt;&lt;P&gt;and highlight the If Plate_Size ="3" X 2"".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know it has to do with the X but I an't remember what to do having brain fart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Can someone refresh me.....&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:00:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947182#M130468</guid>
      <dc:creator>jletcher</dc:creator>
      <dc:date>2013-06-05T11:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947186#M130470</link>
      <description>&lt;P&gt;I think the " marks are messing you up. iLogic will see the string as divided because the " will be seen as the start and end of a string.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:04:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947186#M130470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-05T11:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947196#M130471</link>
      <description>&lt;P&gt;Yes you are correct. Is there a way to keep them? I know it has to do with a double something if I remember correctly..&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:14:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947196#M130471</guid>
      <dc:creator>jletcher</dc:creator>
      <dc:date>2013-06-05T11:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947198#M130472</link>
      <description>&lt;P&gt;My only solution is to go metric! lol... Sorry &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:15:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947198#M130472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-05T11:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947202#M130473</link>
      <description>I can see a workaround where you'd make addition parameters that have the value 3" x 2" and then write the code to say if PlateSize = NewParameter then ect.... It's a fudge but it should work and keep you moving forward.</description>
      <pubDate>Wed, 05 Jun 2013 11:20:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947202#M130473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-05T11:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947205#M130474</link>
      <description>&lt;P&gt;Metric lol that would flip these rednecks out they don't even know what a weld symbol is LOL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Yeah i was thinking the same thing about the new parameter I guess I will just take them out for now..&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 11:26:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947205#M130474</guid>
      <dc:creator>jletcher</dc:creator>
      <dc:date>2013-06-05T11:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947326#M130475</link>
      <description>&lt;P&gt;You should be able to put an 'extra' quotation mark in the string like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;If Plate_Size = "3"" X 2""" Then
	Parameter("Dim_X") = 3
	Parameter("Dim_Y") = 2
	Parameter("Foot_Code") = "A"

ElseIf Plate_Size = "4"" X 2""" Then
	Parameter("Dim_X") = 4
	Parameter("Dim_Y") = 2
	Parameter("Foot_Code") = "B"

End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(The extra quotation mark will be ignored when the rule is compiled and run)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 13:07:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947326#M130475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-05T13:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947328#M130476</link>
      <description>&lt;P&gt;Or you can use Chr(34) - less confusing&amp;nbsp;&lt;SPAN&gt;programmatically IMO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;If Plate_Size = "3" &amp;amp; Chr(34) &amp;amp; " X 2" &amp;amp; Chr(34) Then
	Parameter("Dim_X") = 3
	Parameter("Dim_Y") = 2
	Parameter("Foot_Code") = "A"
ElseIf Plate_Size = "4" &amp;amp; Chr(34) &amp;amp; " X 2" &amp;amp; Chr(34) Then
	Parameter("Dim_X") = 4
	Parameter("Dim_Y") = 2
	Parameter("Foot_Code") = "B"
End If&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jun 2013 13:13:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947328#M130476</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2013-06-05T13:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947406#M130477</link>
      <description>&lt;P&gt;Thanks that worked.. I thoght I tried that but I gues I did not..&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 13:55:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947406#M130477</guid>
      <dc:creator>jletcher</dc:creator>
      <dc:date>2013-06-05T13:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947414#M130478</link>
      <description>&lt;P&gt;Thanks jdkriek your solution will work too...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 13:59:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947414#M130478</guid>
      <dc:creator>jletcher</dc:creator>
      <dc:date>2013-06-05T13:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: X is not valid?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947659#M130479</link>
      <description>&lt;P&gt;Quite welcome! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 16:35:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/x-is-not-valid/m-p/3947659#M130479</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2013-06-05T16:35:34Z</dc:date>
    </item>
  </channel>
</rss>

