<?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 &amp;quot;End of statement expected&amp;quot; in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106008#M123967</link>
    <description>&lt;P&gt;Hi ASchlaack,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you'll need a space between 60 and in:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;60 in&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rather than:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;60in&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jun 2014 19:49:51 GMT</pubDate>
    <dc:creator>Curtis_Waguespack</dc:creator>
    <dc:date>2014-06-19T19:49:51Z</dc:date>
    <item>
      <title>iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5105976#M123966</link>
      <description>&lt;P&gt;I'm trying to use iLogic while making a conveyor rail. If the rail is under 60in, I don't need supports. I keep getting &amp;nbsp;"End of statement expected" as an error. What am I doing wrong or how should this be phrased other than how I have it?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 19:32:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5105976#M123966</guid>
      <dc:creator>ASchlaack</dc:creator>
      <dc:date>2014-06-19T19:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106008#M123967</link>
      <description>&lt;P&gt;Hi ASchlaack,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you'll need a space between 60 and in:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;60 in&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rather than:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;60in&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 19:49:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106008#M123967</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2014-06-19T19:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106048#M123968</link>
      <description>&lt;P&gt;Thanks, I did that which cleared line one's error&amp;nbsp;BUT still have the ones on line 9. Any other ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 20:05:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106048#M123968</guid>
      <dc:creator>ASchlaack</dc:creator>
      <dc:date>2014-06-19T20:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106086#M123969</link>
      <description>&lt;P&gt;Hi ASchlaack,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I think you need an &lt;STRONG&gt;Else If&lt;/STRONG&gt; on that line. Try something like this example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;If Parameter("Rail_Length") &amp;lt; 60 in Then
MessageBox.Show("not quite 60", "iLogic")
Else If Parameter("Rail_Length") &amp;gt;= 60 in Then
MessageBox.Show("60 or more", "iLogic")
Else 'this Else is optional
End If&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a better example of an &lt;STRONG&gt;Else&lt;/STRONG&gt; (without If) in use, in case it helps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;If Parameter("Rail_Length") &amp;lt; 60 in Then
MessageBox.Show("not quite 60", "iLogic")
Else If Parameter("Rail_Length") &amp;gt; 60 in Then
MessageBox.Show("over 60", "iLogic")
Else 
MessageBox.Show("I guess it must be 60!", "iLogic")
End If&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;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>Thu, 19 Jun 2014 20:30:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106086#M123969</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2014-06-19T20:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106126#M123970</link>
      <description>&lt;P&gt;&lt;!-- StartFragment --&gt;Thank you, I ended up getting it with this (Rule posted below)&amp;nbsp;I also added two other pieces to supress.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now getting this error though:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error in rule: Rule0, in document: Assembly2&lt;/P&gt;&lt;P&gt;Component.IsActive: Cannot change the suppression state of component TEST-Horizontal-FlangeAngleL:3.&lt;/P&gt;&lt;P&gt;The active Level of Detail in Assembly2 is not a custom Level of Detail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rule that worked:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Parameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;TEST8-Horizontal-Rail1201:1&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;d19&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;60 &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;in &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Component&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;IsActive&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;TEST-Horizontal-FlangeAngleL:3&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;False&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Component&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;IsActive&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;TEST-Horizontal-FlangeAngleL:4&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;False&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Component&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;IsActive&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;TEST-Horizontal-FlangeAngleR:4&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;False&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Component&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;IsActive&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;TEST-Horizontal-FlangeAngleR:3&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;False&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Else&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Component&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;IsActive&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;TEST-Horizontal-FlangeAngleL:3&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;True&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Component&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;IsActive&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;TEST-Horizontal-FlangeAngleL:4&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;True&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Component&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;IsActive&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;TEST-Horizontal-FlangeAngleR:4&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;True&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Component&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;IsActive&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;TEST-Horizontal-FlangeAngleR:3&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;True&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;!-- EndFragment --&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 20:42:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106126#M123970</guid>
      <dc:creator>ASchlaack</dc:creator>
      <dc:date>2014-06-19T20:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106182#M123971</link>
      <description>&lt;P&gt;Hi ASchlaack,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in order to suppress something in Inventor using iLogic you must have a Level of Detail that can be edited, set active in the assembly. Most often we use a snippet of code to look for an existing "iLogicLOD", and then create it, should it not be found. Once the "iLogicLOD" is set active, you can have your rule suppress parts as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a quick example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'define the document&lt;BR /&gt;Dim oDoc as AssemblyDocument&lt;BR /&gt;oDoc = ThisDoc.Document &lt;BR /&gt;'define the LOD&lt;BR /&gt;Dim oLOD As LevelOfDetailRepresentation &lt;BR /&gt;'define the assembly component definition&lt;BR /&gt;Dim oACDef As ComponentDefinition &lt;BR /&gt;oACDef = oDoc.ComponentDefinition&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'try to activate the iLogic LOD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oLOD = oACDef.RepresentationsManager. _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LevelOfDetailRepresentations.Item("iLogicLOD").Activate(True)&lt;BR /&gt;Catch&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'catch error when iLogic LOD doesn't exist&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'and then create it&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oLOD = oACDef.RepresentationsManager. _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LevelOfDetailRepresentations.Add("iLogicLOD")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'activate the newly created iLogic LOD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oLOD = oACDef.RepresentationsManager. _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LevelOfDetailRepresentations.Item("iLogicLOD").Activate(True)&lt;BR /&gt;End Try

'look at parameter and suppress components
'if the parameter is less than 60 inches
If Parameter("TEST8-Horizontal-Rail1201:1", "d19") &amp;lt; 60 in Then
Component.IsActive("TEST-Horizontal-FlangeAngleL:3")=False
Component.IsActive("TEST-Horizontal-FlangeAngleL:4")=False
Component.IsActive("TEST-Horizontal-FlangeAngleR:4")=False
Component.IsActive("TEST-Horizontal-FlangeAngleR:3")=False
Else
Component.IsActive("TEST-Horizontal-FlangeAngleL:3")=True
Component.IsActive("TEST-Horizontal-FlangeAngleL:4")=True
Component.IsActive("TEST-Horizontal-FlangeAngleR:4")=True
Component.IsActive("TEST-Horizontal-FlangeAngleR:3")=True
End If&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&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>Thu, 19 Jun 2014 21:19:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106182#M123971</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2014-06-19T21:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106996#M123974</link>
      <description>&lt;P&gt;Thank you Curtis!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2014 11:52:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/5106996#M123974</guid>
      <dc:creator>ASchlaack</dc:creator>
      <dc:date>2014-06-20T11:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/9360506#M123975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I do the exact same for a DesignViewRepresentation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to just replace LOD with ViewRep, but get this error. "Public member 'Activate' on type 'DesignViewRepresentation' not found."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'define the document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt; 
&lt;SPAN&gt;'define the VIEW&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DesignViewRepresentation&lt;/SPAN&gt;
&lt;SPAN&gt;'define the assembly component definition&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oACDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt; 
&lt;SPAN&gt;oACDef&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN&gt;Try&lt;/SPAN&gt;
     &lt;SPAN&gt;'try to activate the iLogic VIEW&lt;/SPAN&gt;
     &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
     &lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicVIEW"&lt;/SPAN&gt;).&lt;SPAN&gt;Activate&lt;/SPAN&gt;(&lt;SPAN&gt;True&lt;/SPAN&gt;)
&lt;SPAN&gt;Catch&lt;/SPAN&gt;
     &lt;SPAN&gt;'catch error when iLogicVIEW doesn't exist&lt;/SPAN&gt;
     &lt;SPAN&gt;'and then create it&lt;/SPAN&gt;
     &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
     &lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicVIEW"&lt;/SPAN&gt;)
     &lt;SPAN&gt;'activate the newly created iLogicVIEW&lt;/SPAN&gt;
     &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
     &lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicVIEW"&lt;/SPAN&gt;).&lt;SPAN&gt;Activate&lt;/SPAN&gt;(&lt;SPAN&gt;True&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This creates a ViewRep, but does so every time the rule runs, then gives the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Theo&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 13:47:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/9360506#M123975</guid>
      <dc:creator>tjvz85</dc:creator>
      <dc:date>2020-03-05T13:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/9360771#M123976</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2302612"&gt;@tjvz85&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't look to see what the differences between the LOD and VReps were but here is an example that works:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;'define the document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt; 
&lt;SPAN&gt;'define the VIEW&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DesignViewRepresentation&lt;/SPAN&gt;
&lt;SPAN&gt;'define the assembly component definition&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oACDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt; 
&lt;SPAN&gt;oACDef&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN&gt;Try&lt;/SPAN&gt;
     &lt;SPAN&gt;'try to activate the iLogic VIEW&lt;/SPAN&gt;
     &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
     &lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicVIEW"&lt;/SPAN&gt;).&lt;SPAN&gt;Activate&lt;/SPAN&gt;
&lt;SPAN&gt;Catch&lt;/SPAN&gt;
     &lt;SPAN&gt;'catch error when iLogicVIEW doesn't exist&lt;/SPAN&gt;
     &lt;SPAN&gt;'and then create it&lt;/SPAN&gt;
     &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
     &lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicVIEW"&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;&lt;/PRE&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>Thu, 05 Mar 2020 15:15:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/9360771#M123976</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2020-03-05T15:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/9362772#M123977</link>
      <description>&lt;P&gt;hanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;&amp;nbsp;, always appreciate your input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a product that I would like to show various configs via a form in the main assembly. I find it works faster if I rather set ViewReps instead of LOD's.&lt;/P&gt;&lt;P&gt;I have a rule in the main sub assembly that works fine when that file is opened explicitly. Then the rule in the top assemblies has a line that runs the rule in the sub assembly, but nothing happens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rule in Sub Assy:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'define the document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt; 
&lt;SPAN&gt;'define the VIEW&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DesignViewRepresentation&lt;/SPAN&gt;
&lt;SPAN&gt;'define the assembly component definition&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oACDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt; 
&lt;SPAN&gt;oACDef&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN&gt;'look at parameter and set VReps&lt;/SPAN&gt;

&lt;SPAN&gt;'Klappe/Standard options&lt;/SPAN&gt;
&lt;SPAN&gt;Select&lt;/SPAN&gt; &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"OPTIONEN"&lt;/SPAN&gt;)

&lt;SPAN&gt;Case&lt;/SPAN&gt; (&lt;SPAN&gt;"1. STANDARD"&lt;/SPAN&gt;)
	&lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
	&lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"1. STANDARD"&lt;/SPAN&gt;).&lt;SPAN&gt;Activate&lt;/SPAN&gt;

	
&lt;SPAN&gt;Case&lt;/SPAN&gt; (&lt;SPAN&gt;"2. KLAPPE"&lt;/SPAN&gt;)
	&lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
	&lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"2. KLAPPE"&lt;/SPAN&gt;).&lt;SPAN&gt;Activate&lt;/SPAN&gt;

	
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Select&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rule in Top Assy&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'Parameter from Assembly to Sub Components&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"EA2314.010000  ZBG Mäher Grundgehäuse:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"OPTIONEN"&lt;/SPAN&gt;) = &lt;SPAN&gt;OPTIONEN&lt;/SPAN&gt;

&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;RunRule&lt;/SPAN&gt;(&lt;SPAN&gt;"EA2314.010000  ZBG Mäher Grundgehäuse:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Konfigurationen"&lt;/SPAN&gt;)


&lt;SPAN&gt;'Optionen: Standard/Klappe&lt;/SPAN&gt;
&lt;SPAN&gt;Select&lt;/SPAN&gt; &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"OPTIONEN"&lt;/SPAN&gt;)
	
&lt;SPAN&gt;Case&lt;/SPAN&gt; (&lt;SPAN&gt;"1. STANDARD"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt;(&lt;SPAN&gt;"EA2314.080000  ZBG Klappe:1"&lt;/SPAN&gt;) = &lt;SPAN&gt;False&lt;/SPAN&gt;
	
&lt;SPAN&gt;Case&lt;/SPAN&gt; (&lt;SPAN&gt;"2. KLAPPE"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt;(&lt;SPAN&gt;"EA2314.080000  ZBG Klappe:1"&lt;/SPAN&gt;) = &lt;SPAN&gt;True&lt;/SPAN&gt;
	
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Select&lt;/SPAN&gt;


&lt;SPAN&gt;'define the document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt; 
&lt;SPAN&gt;'define the VIEW&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DesignViewRepresentation&lt;/SPAN&gt;
&lt;SPAN&gt;'define the assembly component definition&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oACDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt; 
&lt;SPAN&gt;oACDef&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;


&lt;SPAN&gt;'look at parameter and toggle visibility components&lt;/SPAN&gt;

&lt;SPAN&gt;'Befestigung Options&lt;/SPAN&gt;
&lt;SPAN&gt;Select&lt;/SPAN&gt; &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"BEFESTIGUNG"&lt;/SPAN&gt;)
	
&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"1. STARR"&lt;/SPAN&gt;
&lt;SPAN&gt;'set VRep&lt;/SPAN&gt;

	&lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
	&lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"1. STARR"&lt;/SPAN&gt;).&lt;SPAN&gt;Activate&lt;/SPAN&gt;

&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"2. PRLG"&lt;/SPAN&gt;
&lt;SPAN&gt;'set VRep&lt;/SPAN&gt;

	&lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
	&lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"2. PRLG"&lt;/SPAN&gt;).&lt;SPAN&gt;Activate&lt;/SPAN&gt;

&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"3. 3-PUNKT"&lt;/SPAN&gt;
&lt;SPAN&gt;'set Vrep&lt;/SPAN&gt;

	&lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
	&lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"3. 3-PUNKT"&lt;/SPAN&gt;).&lt;SPAN&gt;Activate&lt;/SPAN&gt;

&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"4. A-RAHM"&lt;/SPAN&gt;
&lt;SPAN&gt;'set Vrep&lt;/SPAN&gt;

	&lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
	&lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"4. A-RAHM"&lt;/SPAN&gt;).&lt;SPAN&gt;Activate&lt;/SPAN&gt;

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Select&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It there a way to rather set the sub assy VRep from the top assy rule, instead of having a second rule? Or what is wrong that the sub assy does not adjust when its rule is run from top assy rule?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance appreciated.&lt;/P&gt;&lt;P&gt;Theo&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 12:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/9362772#M123977</guid>
      <dc:creator>tjvz85</dc:creator>
      <dc:date>2020-03-06T12:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/9363918#M123978</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2302612"&gt;@tjvz85&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this will answer your questions, post back if not.&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" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 244px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/738475iF8E8007A71D3751F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;oViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"iLogicVIEW"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DesignViewRepresentation&lt;/SPAN&gt;

&lt;SPAN&gt;'get the subassembly component occurence&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; = &lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;InventorComponent&lt;/SPAN&gt;(&lt;SPAN&gt;"Test1:1"&lt;/SPAN&gt;)

&lt;SPAN&gt;'define the assembly component definition&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oACDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt; 
&lt;SPAN&gt;oACDef&lt;/SPAN&gt; = &lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Definition&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;


&lt;SPAN&gt;Try&lt;/SPAN&gt;
     &lt;SPAN&gt;'Try To get the iLogic View&lt;/SPAN&gt;
	 &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
     &lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;oViewName&lt;/SPAN&gt;)
&lt;SPAN&gt;Catch&lt;/SPAN&gt;
     &lt;SPAN&gt;'catch error when iLogicVIEW doesn't exist&lt;/SPAN&gt;
     &lt;SPAN&gt;'and then create it	 &lt;/SPAN&gt;
     &lt;SPAN&gt;oVIEW&lt;/SPAN&gt; = &lt;SPAN&gt;oACDef&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;. _
     &lt;SPAN&gt;DesignViewRepresentations&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oViewName&lt;/SPAN&gt;)

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;

&lt;SPAN&gt;'activate it&lt;/SPAN&gt;
&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;SetDesignViewRepresentation&lt;/SPAN&gt;(&lt;SPAN&gt;oViewName&lt;/SPAN&gt;,, &lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;/PRE&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>Fri, 06 Mar 2020 21:04:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/9363918#M123978</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2020-03-06T21:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic "End of statement expected"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/9365256#M123979</link>
      <description>&lt;P&gt;Works like a charm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Dim oVIEW As DesignViewRepresentation

'get the subassembly component occurence
Dim oOcc = Component.InventorComponent("EA2314.010000 ZBG Mäher Grundgehäuse:1")

'define the assembly component definition
Dim oOCDef As ComponentDefinition
oOCDef = oOcc.Definition.Document.ComponentDefinition

'Parameter in top level, chain or klappe
Select Case Parameter("OPTIONEN")

Case ("1. STANDARD")
'activate vrep in sub assembly
oOcc.SetDesignViewRepresentation("1. STANDARD", , True)

Case ("2. KLAPPE")
'activate vrep in sub assembly
oOcc.SetDesignViewRepresentation("2. KLAPPE", , True)

End Select&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 08 Mar 2020 09:53:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-quot-end-of-statement-expected-quot/m-p/9365256#M123979</guid>
      <dc:creator>tjvz85</dc:creator>
      <dc:date>2020-03-08T09:53:30Z</dc:date>
    </item>
  </channel>
</rss>

