<?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 in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738684#M68527</link>
    <description>&lt;P&gt;Even is structure of your code was correct (it's missing one EndIf) it would do nothing because in first IF statement you turn off &lt;STRONG&gt;SOLID1&lt;/STRONG&gt; and in second IF you turn on the same &lt;STRONG&gt;SOLID1&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2016 08:13:24 GMT</pubDate>
    <dc:creator>SašoPrijatelj</dc:creator>
    <dc:date>2016-12-09T08:13:24Z</dc:date>
    <item>
      <title>iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6735763#M68492</link>
      <description>&lt;P&gt;Hi iLogic Users&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about iLogic, I have been using this code for turning on/off solids in a part. this has been working fine until I reinstalled FDS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;maybe &amp;nbsp;you can help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something wrong with this code??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN&gt;as&lt;/SPAN&gt; &lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Document&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oBody&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SurfaceBody&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SurfaceBodies&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Another thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has any of you found a way to turn of a&amp;nbsp;feature occurence in a pattern in a part ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br. Pia&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 07:52:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6735763#M68492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-08T07:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738599#M68522</link>
      <description>&lt;P&gt;The code you posted does nothing. It's only the beginning of the code. Did you make a mistake when copy-pasting or is that actual code you try to use?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 07:28:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738599#M68522</guid>
      <dc:creator>SašoPrijatelj</dc:creator>
      <dc:date>2016-12-09T07:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738609#M68523</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes it´s the beginning of the code after that it could be like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;If TheCodeAreRight then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;If oBody.Name="Solid1"then oBody.Visible=1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Else &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;If oBody.Name="Solid1"then oBody.Visible=0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;End if &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Next&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this make more sense &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Pia &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 07:36:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738609#M68523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-09T07:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738617#M68524</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this - it will make Solid2 invisible and Solid1 visible:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oCompDef As ComponentDefinition = ThisDoc.Document.ComponentDefinition
For Each oBody As SurfaceBody In oCompDef.SurfaceBodies
	'If TheCodeAreRight Then
	If oBody.Name = "Solid1" Then 
		oBody.Visible=1
	Else If oBody.Name = "Solid2" Then 
		oBody.Visible=0
	End If 
Next&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Dec 2016 07:42:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738617#M68524</guid>
      <dc:creator>SašoPrijatelj</dc:creator>
      <dc:date>2016-12-09T07:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738665#M68526</link>
      <description>&lt;P&gt;what´s the difference between the code you&amp;nbsp;posted and the one that I&amp;nbsp;posted ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And why, does it suddenly not work anymore. ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br- Pia&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 08:04:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738665#M68526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-09T08:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738684#M68527</link>
      <description>&lt;P&gt;Even is structure of your code was correct (it's missing one EndIf) it would do nothing because in first IF statement you turn off &lt;STRONG&gt;SOLID1&lt;/STRONG&gt; and in second IF you turn on the same &lt;STRONG&gt;SOLID1&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 08:13:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6738684#M68527</guid>
      <dc:creator>SašoPrijatelj</dc:creator>
      <dc:date>2016-12-09T08:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6739072#M68539</link>
      <description>&lt;P&gt;Okey Sounds plausible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What about this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Code="On"then&lt;/P&gt;&lt;P&gt;if obody.name="Solid1"then oBody.Visible=1&lt;/P&gt;&lt;P&gt;else if Code="Off"then&lt;/P&gt;&lt;P&gt;If oBody.name="Solid1"then Obody.Visible=0&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still confused about, why it worked before reinstalling FDS2016?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Pia&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 11:27:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic/m-p/6739072#M68539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-09T11:27:47Z</dc:date>
    </item>
  </channel>
</rss>

