<?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 ilogic and work plane visibility in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3383929#M136932</link>
    <description>&lt;P&gt;Is there a way to turn off visibility on work planes using ilogic?&amp;nbsp;&amp;nbsp; Also, is there a way to change an extrusion type from an assymetrical extrusion to a one direction extrusion using ilogic?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2012 17:59:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-23T17:59:26Z</dc:date>
    <item>
      <title>ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3383929#M136932</link>
      <description>&lt;P&gt;Is there a way to turn off visibility on work planes using ilogic?&amp;nbsp;&amp;nbsp; Also, is there a way to change an extrusion type from an assymetrical extrusion to a one direction extrusion using ilogic?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 17:59:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3383929#M136932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-23T17:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3384051#M136933</link>
      <description>&lt;P&gt;This will turn the visibility of Work Plane1 off&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#800000"&gt;&lt;FONT size="3" color="#800000"&gt;oDoc &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" color="#ff0000"&gt;&lt;FONT size="3" color="#ff0000"&gt;As &lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" color="#800000"&gt;&lt;FONT size="3" color="#800000"&gt;&lt;FONT size="3" color="#800000"&gt;PartDocument&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;oDoc&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;= &lt;/FONT&gt;&lt;FONT size="3" color="#800080"&gt;&lt;FONT size="3" color="#800080"&gt;ThisDoc.Document&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;For Each&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#800000"&gt;&lt;FONT size="3" color="#800000"&gt;oWorkPlane &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" color="#ff0000"&gt;&lt;FONT size="3" color="#ff0000"&gt;In &lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" color="#800000"&gt;&lt;FONT size="3" color="#800000"&gt;&lt;FONT size="3" color="#800000"&gt;oDoc.ComponentDefinition.WorkPlanes&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3" color="#ff0000"&gt;&lt;FONT size="3" color="#ff0000"&gt;If &lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" color="#800000"&gt;&lt;FONT size="3" color="#800000"&gt;oWorkPlane.Name &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;= &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" color="#008080"&gt;&lt;FONT size="3" color="#008080"&gt;"Work Plane1" &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" color="#ff0000"&gt;&lt;FONT size="3" color="#ff0000"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#800000"&gt;&lt;FONT size="3" color="#800000"&gt;oWorkPlane.Visible &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;= &lt;/FONT&gt;&lt;/STRONG&gt;False&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;FONT size="3" color="#ff0000"&gt;&lt;FONT size="3" color="#ff0000"&gt;End If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&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, 23 Mar 2012 18:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3384051#M136933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-23T18:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3384195#M136934</link>
      <description>&lt;P&gt;Hi rjones0215,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's another rule that toggles all of the workplanes on/off.&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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'define document
Dim oDoc As PartDocument
oDoc = ThisDoc.Document
'look at the workplane collection
For Each oWorkPlane In oDoc.ComponentDefinition.WorkPlanes
'toggle all work planes
If oWorkPlane.Visible = True Then
oWorkPlane.Visible = False
ElseIf oWorkPlane.Visible = False Then
oWorkPlane.Visible = True
End If
Next

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 20:23:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3384195#M136934</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2012-03-23T20:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3384225#M136935</link>
      <description>&lt;P&gt;Nice rule Curtis&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 20:51:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3384225#M136935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-23T20:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3385371#M136936</link>
      <description>&lt;P&gt;thank you.&amp;nbsp; These definitely help.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2012 12:17:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3385371#M136936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-26T12:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631536#M136937</link>
      <description>&lt;P&gt;How can I make this work so that from an assembly&amp;nbsp;plane visibility is changed to false in all sub assemblies and and parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 16:43:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631536#M136937</guid>
      <dc:creator>david_campbell</dc:creator>
      <dc:date>2012-09-24T16:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631588#M136938</link>
      <description>&lt;P&gt;Hi Diswill,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are 2 quick rules that should give you an idea of how to do this. I didn't take a lot of time to test this, so be warned that you might bump into issues with locked design view reps, etc. But this should get you pointed in the right direction I think.&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 target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample rule #1&lt;/P&gt;&lt;PRE&gt;'get user input
oInput = InputRadioBox("Select workplane visibility:", _
 "Turn ON workplanes for all components", "Turn OFF workplanes for all components", "True", "iLogic")

'Define the open document
Dim openDoc As Document
openDoc = ThisDoc.Document

'Look at all of the files referenced in the open document
Dim docFile As Document
For Each docFile In openDoc.AllReferencedDocuments                
'format  file name                   
Dim FNamePos As Long
FNamePos = InStrRev(docFile.FullFileName, "\", -1)                        
Dim docFName As String 
docFName = Right(docFile.FullFileName, Len(docFile.FullFileName) - FNamePos) 
For Each oWorkPlane In docFile.ComponentDefinition.WorkPlanes
'toggle all work planes
If oInput = True Then
oWorkPlane.Visible = True
ElseIf oInput = False Then
oWorkPlane.Visible = False
End If
Next
Next

iLogicVb.UpdateWhenDone = True

&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;&lt;P&gt;sample rule #2&lt;/P&gt;&lt;PRE&gt;'toggle work planes on, if off &amp;amp; off if on
'Define the open document
Dim openDoc As Document
openDoc = ThisDoc.Document

'Look at all of the files referenced in the open document
Dim docFile As Document
For Each docFile In openDoc.AllReferencedDocuments                
'format  file name                   
Dim FNamePos As Long
FNamePos = InStrRev(docFile.FullFileName, "\", -1)                        
Dim docFName As String 
docFName = Right(docFile.FullFileName, Len(docFile.FullFileName) - FNamePos) 
For Each oWorkPlane In docFile.ComponentDefinition.WorkPlanes
'toggle all work planes
If oWorkPlane.Visible = True Then
oWorkPlane.Visible = False
ElseIf oWorkPlane.Visible = False Then
oWorkPlane.Visible = True
End If
Next
Next

iLogicVb.UpdateWhenDone = True&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 17:49:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631588#M136938</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2012-09-24T17:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631626#M136939</link>
      <description>&lt;P&gt;working with your sample 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;user defined planes are not switching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I make a offset plane from orgin plane xy when I run sample 1 the plane I created is unaffected by this rule.&lt;/P&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>Mon, 24 Sep 2012 18:01:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631626#M136939</guid>
      <dc:creator>david_campbell</dc:creator>
      <dc:date>2012-09-24T18:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631690#M136940</link>
      <description>&lt;P&gt;Hi Diswill,&lt;/P&gt;&lt;P&gt;Sample#1 should have worked for your original request&amp;nbsp; "&lt;EM&gt;plane visibility is changed to false in all sub assemblies and and parts&lt;/EM&gt;.", but if you have user workplanes at the top level assembly as well, then you might need to add a few lines to look at the workplane collection in the top level assembly,&amp;nbsp; as in example #3 below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again the issue could be with locked design view representations as well. It's difficult to guess without more details, but hopefully this example will help you work it out.&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 target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;sample rule #3&lt;/P&gt;&lt;PRE&gt;'get user input
oInput = InputRadioBox("Select workplane visibility:", _
 "Turn ON workplanes for all components", "Turn OFF workplanes for all components", "True", "iLogic")

'Define the open document
Dim openDoc As Document
openDoc = ThisDoc.Document

'toggle work planes in the open document (top level assembly)
For Each oWorkPlane In openDoc.ComponentDefinition.WorkPlanes
'toggle all work planes
If oInput = True Then
oWorkPlane.Visible = True
ElseIf oInput = False Then
oWorkPlane.Visible = False
End If
Next

'Look at all of the files referenced in the open document
Dim docFile As Document
For Each docFile In openDoc.AllReferencedDocuments                
'format  file name                   
Dim FNamePos As Long
FNamePos = InStrRev(docFile.FullFileName, "\", -1)                        
Dim docFName As String 
docFName = Right(docFile.FullFileName, Len(docFile.FullFileName) - FNamePos) 
For Each oWorkPlane In docFile.ComponentDefinition.WorkPlanes
'toggle all work planes
If oInput = True Then
oWorkPlane.Visible = True
ElseIf oInput = False Then
oWorkPlane.Visible = False
End If
Next
Next

iLogicVb.UpdateWhenDone = True

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 18:27:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631690#M136940</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2012-09-24T18:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631796#M136941</link>
      <description>&lt;P&gt;Please let me claifiry&lt;/P&gt;&lt;P&gt;&amp;nbsp;the current code I have is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;get user input&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oInput&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;InputRadioBox&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;Select workplane visibility:&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: #800000;"&gt;_&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;Turn ON workplanes for all components&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;Turn OFF workplanes for all components&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;True&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;iLogic&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;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;catches planes in current assembly&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oInput&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;define document&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Document&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;look at the workplane collection&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;For &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Each&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWorkPlane&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkPlanes&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;toggle all work planes off&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWorkPlane&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Visible&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWorkPlane&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Visible&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;/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;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Next&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;ElseIf&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oinput&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;define document&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Document&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;look at the workplane collection&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;For &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Each&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWorkPlane&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkPlanes&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;toggle all work planes on&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWorkPlane&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Visible&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWorkPlane&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Visible&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;/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;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Next&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;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;catches some planes in subassemblies &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;Define the open document&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;openDoc&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;openDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Document&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;Look at all of the files referenced in the open document&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;docFile&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;For&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Each&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;docFile&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;openDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;AllReferencedDocuments&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;format  file name                   &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;FNamePos&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Long&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;FNamePos&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;InStrRev&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;docFile&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;FullFileName&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;\&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: #ff0000; font-weight: bold;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;docFName&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;String&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;docFName&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Right&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;docFile&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;docFile&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;FNamePos&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;For &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Each&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWorkPlane&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;docFile&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkPlanes&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;toggle all work planes&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oInput&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWorkPlane&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Visible&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;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;ElseIf&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oInput&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWorkPlane&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Visible&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;/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;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Next&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Next&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;iLogicVb&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;UpdateWhenDone&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;True&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;!-- EndFragment --&gt;&lt;IMG alt="browser.png" align="center" src="https://forums.autodesk.com/t5/image/serverpage/image-id/38196iEE01425CACB1AF8F/image-size/medium?v=mpbl-1&amp;amp;px=-1" border="0" title="browser.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I open&amp;nbsp;Assembly 2 the plane&amp;nbsp;appears to be&amp;nbsp;toggling correctly. It just appears not to reflect correctly up to assembly1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I fix?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 19:04:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631796#M136941</guid>
      <dc:creator>david_campbell</dc:creator>
      <dc:date>2012-09-24T19:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631824#M136942</link>
      <description>&lt;P&gt;Your sample #3 seams to produce the same results I am having with the code I am currently using.&lt;/P&gt;&lt;P&gt;I am going to use your sample #3 for further discussions so that we are on the same page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 19:18:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631824#M136942</guid>
      <dc:creator>david_campbell</dc:creator>
      <dc:date>2012-09-24T19:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631874#M136943</link>
      <description>&lt;P&gt;Hi Diswill,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think what you're seeing is an issue with view reps in the sub assembly.&amp;nbsp; Basically, we'll need to have a few lines of code check the component to see if it's an assembly file, and then use or create a view rep in the sub assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test this theory you can create a view rep in your sub assembly and ensure that your sub assembly is placed using that view rep, and then I think you'll see that the rule works as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll post back if I have time to look into the needed code update later.&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 target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 19:49:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631874#M136943</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2012-09-24T19:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631896#M136944</link>
      <description>&lt;P&gt;your assumption about the view representation appears to be correct.&lt;/P&gt;&lt;P&gt;for us assemblies are normally places with the master view representation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your assistance is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 20:17:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631896#M136944</guid>
      <dc:creator>david_campbell</dc:creator>
      <dc:date>2012-09-24T20:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631936#M136945</link>
      <description>&lt;P&gt;Hi Diswill,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's back up a step or two.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you wanting to use iLogic to :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A)&lt;/STRONG&gt; turn off the visibility of work planes at the top level assembly?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B)&lt;/STRONG&gt; reach down into each component and turn off the visibility of the work planes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If A, then I think this one line will do the trick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ThisApplication.CommandManager.ControlDefinitions.Item("AppAllWorkfeaturesCmd").Execute&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This is the same as going to the VIew tab &amp;gt; Object Visibility button &amp;gt; All Work Features check box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you're needing B, then we were on the right track earlier, and we'll need to add some lines to look at the sub assembly view reps.&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 target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 20:46:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631936#M136945</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2012-09-24T20:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631956#M136946</link>
      <description>&lt;P&gt;We are looking at option B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the Object Visibility under the view tab is&amp;nbsp;not what we want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want clean assemblies with no plane visibility&amp;nbsp;being active on any part or assembly / subassembly at any level as a starting point for the next group to start working with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;group work in works mainly with planes and it becomes a pain to go to each part and turn off each plane then move to each subassembly and turn off each plane. Then so on up to the main assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the next group grabs our main assemblies in uses them in the larger project a few planes being left on by accident becomes a problem.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 21:09:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3631956#M136946</guid>
      <dc:creator>david_campbell</dc:creator>
      <dc:date>2012-09-24T21:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3632052#M136947</link>
      <description>&lt;P&gt;Hi Diswill,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this will do it. I didn't have much time to review this, so you might find some un-needed lines, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm probably missing something obvious, but as is this example only looks at sub assemblies one level deep. Meaning that if you have an assembly in your subassembly, it won't turn off the workplanes for the same reasons as before (view reps).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I think of something different, I'll post back.&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 target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample #4&lt;/P&gt;&lt;PRE&gt;'get user input
oInput = InputRadioBox("Select workplane visibility:", _
 "Turn ON workplanes for all components", "Turn OFF workplanes for all components", "False", "iLogic")

' set a reference to the assembly component definintion.
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Define the open document (top level assembly)
Dim openDoc As Document
openDoc = ThisDoc.Document
'define view rep 
Dim oViewRep As DesignViewRepresentation
Dim sVRep as String
'change to something else if Default is used for something already
sVRep = "Default"

'create or activate view rep in the top level assembly
Try 	
oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item(sVRep).Activate	
Catch
'create new View Rep
oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Add(sVRep)
End Try


'create or activate view rep in subassemblies
Dim docFile As Document
For Each docFile In openDoc.AllReferencedDocuments                
Dim subDoc As AssemblyComponentDefinition
If docFile.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
subDoc = docFile.ComponentDefinition
Try 	
subDoc.RepresentationsManager.DesignViewRepresentations.Item(sVRep).Activate	
Catch
'create new View Rep
subDoc.RepresentationsManager.DesignViewRepresentations.Add(sVRep)
End Try
Else 
End If
Next

'toggle work planes in the open document (top level assembly)
For Each oWorkPlane In openDoc.ComponentDefinition.WorkPlanes
'toggle all work planes
If oInput = True Then
oWorkPlane.Visible = True
ElseIf oInput = False Then
oWorkPlane.Visible = False
End If
Next

'look at only the subassemblies
Dim subDocFile As Document
For each oCompOcc in oAsmCompDef.Occurrences
If oCompOcc.DefinitionDocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
oCompOcc.SetDesignViewRepresentation(sVRep,, True) 'True sets the view rep to be associative
Else 
End If
Next


'Look at all of the files referenced in the open document
For Each docFile In openDoc.AllReferencedDocuments                
'format  file name                   
Dim FNamePos As Long
FNamePos = InStrRev(docFile.FullFileName, "\", -1)                        
Dim docFName As String 
docFName = Right(docFile.FullFileName, Len(docFile.FullFileName) - FNamePos) 
For Each oWorkPlane In docFile.ComponentDefinition.WorkPlanes
'toggle all work planes
If oInput = True Then
oWorkPlane.Visible = True
ElseIf oInput = False Then
oWorkPlane.Visible = False
End If
Next
Next

iLogicVb.UpdateWhenDone = True&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 22:31:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3632052#M136947</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2012-09-24T22:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3632652#M136948</link>
      <description>&lt;P&gt;This sample seams to catch most of our problems.&lt;/P&gt;&lt;P&gt;Yes we can bury assemblies several layers deep but not so deep that it will require to add to this code.&lt;/P&gt;&lt;P&gt;I really appreciate you and your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2012 12:47:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3632652#M136948</guid>
      <dc:creator>david_campbell</dc:creator>
      <dc:date>2012-09-25T12:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3753476#M136949</link>
      <description>&lt;P&gt;This is exactly what I was looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be too much to ask to supplement the code to also turn off the work axes and work points? Basically I want all the work features to turn off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 16:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3753476#M136949</guid>
      <dc:creator>pistonrod8</dc:creator>
      <dc:date>2013-01-15T16:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3753651#M136950</link>
      <description>&lt;P&gt;Hi &amp;nbsp;pistonrod8,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a modified version that handles all work features.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'get user input&lt;BR /&gt;oInput = InputRadioBox("Select work feature visibility:", _&lt;BR /&gt;&amp;nbsp;"Turn ON work features for all components", _&lt;BR /&gt;&amp;nbsp;"Turn OFF work features for all components", "False", "iLogic")&lt;BR /&gt;&lt;BR /&gt;' set a reference to the assembly component definintion.&lt;BR /&gt;Dim oAsmCompDef As AssemblyComponentDefinition&lt;BR /&gt;oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition&lt;BR /&gt;&lt;BR /&gt;'Define the open document (top level assembly)&lt;BR /&gt;Dim openDoc As Document&lt;BR /&gt;openDoc = ThisDoc.Document&lt;BR /&gt;'define view rep &lt;BR /&gt;Dim oViewRep As DesignViewRepresentation&lt;BR /&gt;Dim sVRep as String&lt;BR /&gt;'change to something else if Default is used for something already&lt;BR /&gt;sVRep = "Default"&lt;BR /&gt;&lt;BR /&gt;'create or activate view rep in the top level assembly&lt;BR /&gt;Try &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item(sVRep).Activate&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Catch&lt;BR /&gt;'create new View Rep&lt;BR /&gt;oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Add(sVRep)&lt;BR /&gt;End Try&lt;BR /&gt;&lt;BR /&gt;'create or activate view rep in subassemblies&lt;BR /&gt;Dim docFile As Document&lt;BR /&gt;For Each docFile In openDoc.AllReferencedDocuments&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Dim subDoc As AssemblyComponentDefinition&lt;BR /&gt;If docFile.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then&lt;BR /&gt;subDoc = docFile.ComponentDefinition&lt;BR /&gt;Try &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;subDoc.RepresentationsManager.DesignViewRepresentations.Item(sVRep).Activate&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Catch&lt;BR /&gt;'create new View Rep&lt;BR /&gt;subDoc.RepresentationsManager.DesignViewRepresentations.Add(sVRep)&lt;BR /&gt;End Try&lt;BR /&gt;Else &lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'toggle work features in the open document (top level assembly)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;For Each oWorkPlane In openDoc.ComponentDefinition.WorkPlanes&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oInput = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkPlane.Visible = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ElseIf oInput = False Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkPlane.Visible = False&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Next&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;For Each oWorkAxis In openDoc.ComponentDefinition.WorkAxes&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oInput = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkAxis.Visible = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ElseIf oInput = False Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkAxis.Visible = False&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Next&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;For Each oWorkPoint In openDoc.ComponentDefinition.WorkPoints&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oInput = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkPoint.Visible = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ElseIf oInput = False Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkPoint.Visible = False&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Next&lt;BR /&gt;&lt;BR /&gt;'look at only the subassemblies&lt;BR /&gt;Dim subDocFile As Document&lt;BR /&gt;For each oCompOcc in oAsmCompDef.Occurrences&lt;BR /&gt;If oCompOcc.DefinitionDocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then&lt;BR /&gt;oCompOcc.SetDesignViewRepresentation(sVRep,, True) 'True sets the view rep to be associative&lt;BR /&gt;Else &lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'Look at all of the files referenced in the open document&lt;BR /&gt;For Each docFile In openDoc.AllReferencedDocuments&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'toggle work features in the components&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;For Each oWorkPlane In docFile.ComponentDefinition.WorkPlanes&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oInput = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkPlane.Visible = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ElseIf oInput = False Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkPlane.Visible = False&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Next&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;For Each oWorkAxis In docFile.ComponentDefinition.WorkAxes&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oInput = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkAxis.Visible = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ElseIf oInput = False Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkAxis.Visible = False&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Next&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;For Each oWorkPoint In docFile.ComponentDefinition.WorkPoints&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oInput = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkPoint.Visible = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ElseIf oInput = False Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oWorkPoint.Visible = False&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Next&lt;BR /&gt;Next&lt;BR /&gt;iLogicVb.UpdateWhenDone = True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 19:24:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3753651#M136950</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2013-01-15T19:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic and work plane visibility</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3753660#M136951</link>
      <description>&lt;P&gt;That works great. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 19:23:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-work-plane-visibility/m-p/3753660#M136951</guid>
      <dc:creator>pistonrod8</dc:creator>
      <dc:date>2013-01-15T19:23:52Z</dc:date>
    </item>
  </channel>
</rss>

