<?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 change factory part - syntax error? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7921550#M83110</link>
    <description>&lt;P&gt;Yeah, could be it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply trying things out and seeing what happens will probably get your results a lot faster than posting back to the forums every time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sounds like a reasonable assumption that it could be looking for information in the first column of the iPart table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe the format of the table is off too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could always review the documentation in the help files about iPart iLogic too.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 14:47:10 GMT</pubDate>
    <dc:creator>MechMachineMan</dc:creator>
    <dc:date>2018-04-10T14:47:10Z</dc:date>
    <item>
      <title>ilogic to change factory part - syntax error?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7919841#M83104</link>
      <description>&lt;P&gt;Hi all, I'm learning how to use ilogic for inventor.&lt;BR /&gt;My current issue that I can't seem to get around is a syntax error.&lt;BR /&gt;I have&amp;nbsp;obtained the correct syntax from&amp;nbsp;the Autodesk website I need to use but I can't see where I am entering it incorrectly.&lt;BR /&gt;I am using assembly, with various&amp;nbsp;iparts&lt;BR /&gt;I have a user parameter I named "Tank_Type_STANDARD" which I want to control the factory ipart that is loaded to the assembly. the goal is to create a form that can produce different variations of an assembly through basic changes made to the form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my failing rule is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Tank_Type_STANDARD = 1&lt;BR /&gt;Then iPart.ChangeRow("Tank_wall_base", "Tank_Lower_Section_01")&lt;BR /&gt;ElseIf Tank_Type_STANDARD = 2&lt;BR /&gt;Then iPart.ChangeRow("Tank_wall_base", "Tank_Lower_Section_02")&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have I approached this problem incorrectly? can my goal be achieved? I will continue to try and solve this problem in the meantime. Any and all assistance is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 00:53:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7919841#M83104</guid>
      <dc:creator>chrisjspower</dc:creator>
      <dc:date>2018-04-10T00:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to change factory part - syntax error?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7919893#M83105</link>
      <description>&lt;P&gt;Hello Chris,&lt;/P&gt;
&lt;P&gt;It seems there are many posts shows how to handle it -&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/change-ipart-member-with-ilogic/td-p/6219938" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/change-ipart-member-with-ilogic/td-p/6219938&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/change-ipart-member-with-ilogic/td-p/7453039" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/change-ipart-member-with-ilogic/td-p/7453039&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-forum/changing-ipart-with-ilogic/td-p/6370599" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-forum/changing-ipart-with-ilogic/td-p/6370599&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope those helps!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 01:23:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7919893#M83105</guid>
      <dc:creator>Xun.Zhang</dc:creator>
      <dc:date>2018-04-10T01:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to change factory part - syntax error?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7920009#M83106</link>
      <description>&lt;P&gt;Several hours in and I can't see where these suggestions relate or how to apply them. Everything&amp;nbsp;I try comes back with syntax errors or does nothing.&lt;/P&gt;&lt;P&gt;This should be a pretty basic function, or I'm going about it the wrong way. I just want to change an ipart in assembly without manually doing so in the assembly tree.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit*&lt;BR /&gt;Not sure if part name is stabilized so will try this now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 03:34:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7920009#M83106</guid>
      <dc:creator>chrisjspower</dc:creator>
      <dc:date>2018-04-10T03:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to change factory part - syntax error?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7920051#M83107</link>
      <description>&lt;P&gt;FTFY&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Structure is important in coding. The 'then'&amp;nbsp; needs to be at the end of the line (or not exist at all in some programming languages)&lt;/P&gt;
&lt;PRE&gt;If Tank_Type_STANDARD = 1 Then 
    iPart.ChangeRow("Tank_wall_base", "Tank_Lower_Section_01")
ElseIf Tank_Type_STANDARD = 2 Then 
    iPart.ChangeRow("Tank_wall_base", "Tank_Lower_Section_02")
End If&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Apr 2018 03:55:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7920051#M83107</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-04-10T03:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to change factory part - syntax error?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7920173#M83108</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Tank_Type_STANDARD&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;3&lt;/SPAN&gt; 
&lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;iPart&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ChangeRow&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Tank_Lower_Section&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;T03&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Tank_Type_STANDARD&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;4&lt;/SPAN&gt; 
&lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;iPart&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ChangeRow&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Tank_Lower_Section&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;T04&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;i get a syntax error on line 2 &amp;amp; 4 still whereas placing "then" at the "end" of line 1 &amp;amp; 2 produces no error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 05:44:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7920173#M83108</guid>
      <dc:creator>chrisjspower</dc:creator>
      <dc:date>2018-04-10T05:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to change factory part - syntax error?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7920213#M83109</link>
      <description>&lt;P&gt;Okay thanks that got me a step further, now i just have to figure out why it isn't finding the row.&lt;BR /&gt;I get this message:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;"Error in rule: "rule", in document: "Assembly.iam"&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;iPart.ChangeRow: No iPart row with the specification "anthing i enter here" was found in the component "ipart".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when it refers to the row do I enter the member name, the part number or the number to the far left of the table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 06:12:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7920213#M83109</guid>
      <dc:creator>chrisjspower</dc:creator>
      <dc:date>2018-04-10T06:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to change factory part - syntax error?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7921550#M83110</link>
      <description>&lt;P&gt;Yeah, could be it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply trying things out and seeing what happens will probably get your results a lot faster than posting back to the forums every time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sounds like a reasonable assumption that it could be looking for information in the first column of the iPart table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe the format of the table is off too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could always review the documentation in the help files about iPart iLogic too.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 14:47:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7921550#M83110</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-04-10T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic to change factory part - syntax error?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7921649#M83112</link>
      <description>Oh I wasn't waiting for the solution, I was working on it the whole time, trying everything.&amp;nbsp;&lt;BR /&gt;In the end I re-started from scratch and used the same ilogic i started with and it worked.&amp;nbsp;when I am back at work I will repost with my findings.&lt;BR /&gt;Thanks for your help!</description>
      <pubDate>Tue, 10 Apr 2018 15:08:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-factory-part-syntax-error/m-p/7921649#M83112</guid>
      <dc:creator>chrisjspower</dc:creator>
      <dc:date>2018-04-10T15:08:20Z</dc:date>
    </item>
  </channel>
</rss>

