<?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: Turn work features off in patterned components/sub assemblies in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9029890#M71694</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help. It is appreciated. I've almost finished the code now. In the process of testing it. I 've had issues with virtual components in the assembly causing the code to exit, but I have fixed that. will post back once it is completed.. Thanks again!&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 12:59:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-17T12:59:27Z</dc:date>
    <item>
      <title>Turn work features off in patterned components/sub assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9020999#M71692</link>
      <description>&lt;P&gt;Does anyone have a snippet of code they could share for switching work features off in an assembly that contains patterned components?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other piece of help I am looking for is to switch off sketches in a part within an assembly or/and sub assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some code that traverses through the assembly using AllReferencedDocuments method but it does not switch of sketches in parts..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks in advance to anyone who has the time to help out...&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 08:43:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9020999#M71692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-12T08:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Turn work features off in patterned components/sub assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9025705#M71693</link>
      <description>&lt;P&gt;Hello bclark,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this code help you?&lt;/P&gt;&lt;PRE&gt;Option Explicit

Sub test()
    Dim aDoc As AssemblyDocument
    Set aDoc = ThisApplication.ActiveEditDocument
    Dim occPattern As OccurrencePattern
    
    For Each occPattern In aDoc.ComponentDefinition.OccurrencePatterns
        Dim occPatternElm As OccurrencePatternElement
        For Each occPatternElm In occPattern.OccurrencePatternElements
            Dim occ As ComponentOccurrence
            For Each occ In occPatternElm.Occurrences
                Debug.Print occ.Name
                '
                ' Something to do to the occurrence.
                '
            Next occ
        Next occPatternElm
    Next occPattern
End Sub&lt;/PRE&gt;&lt;P&gt;If you change visuality of the work features in the sub part document (not the occurrence), one change effects to all the other elements. (Such as the size or length changing in the part model effects to all elements.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because of some reasons, if you want to change visualities of the elements individually, each occurrence in the elements must be treated shown in the code above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;Freeradical&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hideo Yamada&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 04:51:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9025705#M71693</guid>
      <dc:creator>HideoYamada</dc:creator>
      <dc:date>2019-09-15T04:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Turn work features off in patterned components/sub assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9029890#M71694</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help. It is appreciated. I've almost finished the code now. In the process of testing it. I 've had issues with virtual components in the assembly causing the code to exit, but I have fixed that. will post back once it is completed.. Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:59:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9029890#M71694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Turn work features off in patterned components/sub assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9032654#M71695</link>
      <description>&lt;P&gt;So, I have this working now. open an assembly, run the rule and all work features and sketches are turned off&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do, is ammend it so that it deals with weldments also.. I've read that I need to use WeldmentComponentDefinition to access the assembly, but have had no luck this far&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone kindly help? - Code below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800080; font-weight: bold;"&gt;Main&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&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;catch and skip errors&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;On&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Error&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Resume&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Next&lt;/SPAN&gt;
   
&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&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;oAssyDoc&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
 
 &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt; switch of features and sketches in top level assy &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;oAssyDoc&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;/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;Next&lt;/SPAN&gt;
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;set work axis visibility&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;oWorkAxis&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&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;WorkAxes&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;oWorkAxis&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;Next&lt;/SPAN&gt;
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;set work point visibility&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;oWorkPoint&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&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;WorkPoints&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;oWorkPoint&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;Next&lt;/SPAN&gt;    
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;set sketch visibility&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;oSketch&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&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;Sketches&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;oSketch&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;Next&lt;/SPAN&gt;
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;set 3d sketch visibility&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;threeDSketch&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Sketches3D&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;threeDSketch&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;Next&lt;/SPAN&gt;

  &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
  &lt;SPAN style="color: #800000;"&gt;oAssyDef&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&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: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;process all subassemblies&lt;/SPAN&gt;
  &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrence&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;oOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Type&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;kAssemblyComponentDefinitionObject&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;
      &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
      &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;

          
      &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;turn off sketches in subassemblies&lt;/SPAN&gt;
      &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSkProxy&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PlanarSketchProxy&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;oSk&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Sketches&lt;/SPAN&gt;
               &lt;SPAN style="color: #800000;"&gt;oSkProxy&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;Next&lt;/SPAN&gt;
      &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;turn off workplanes in subassemblies&lt;/SPAN&gt;
      &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oWpProxy&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkPlaneProxy&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;oWp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkPlanes&lt;/SPAN&gt;
                &lt;SPAN style="color: #800000;"&gt;oWpProxy&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;Next&lt;/SPAN&gt;
      &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;turn off workpoints in subassemblies  &lt;/SPAN&gt;
      &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oWtProxy&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkPointProxy&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;oWt&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkPoints&lt;/SPAN&gt;
                &lt;SPAN style="color: #800000;"&gt;oWtProxy&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;Next&lt;/SPAN&gt;            
     &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;turn off workaxis in subassemblies  &lt;/SPAN&gt;
      &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oWaProxy&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkAxisProxy&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;oWa&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;
                &lt;SPAN style="color: #800000;"&gt;oWaProxy&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;Next&lt;/SPAN&gt;            
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;turn off 3d sketches in subassemblies  &lt;/SPAN&gt;
      &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;o3DProxy&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sketch3DProxy&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;o3D&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Sketches3D&lt;/SPAN&gt;
                &lt;SPAN style="color: #800000;"&gt;o3DProxy&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;Next&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: #ff0000; font-weight: bold;"&gt;Next&lt;/SPAN&gt; &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;oOcc&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TraverseAssembly&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oAssyDoc&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;Occurrences&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&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;/SPAN&gt; 
&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;End Sub&lt;/SPAN&gt; 
  
&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Private&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TraverseAssembly&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrences&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;_&lt;/SPAN&gt; 
                             &lt;SPAN style="color: #800000;"&gt;Level&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;Integer&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&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; Iterate through all of the occurrence in this collection.  This &lt;/SPAN&gt;
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt; represents the occurrences at the top level of an assembly. &lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrence&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;oOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt; 
        &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;
        
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;Check for virtual components&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;TypeOf&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Is&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;VirtualComponentDefinition&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;    
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Else&lt;/SPAN&gt; 
    
    &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSkProxy&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PlanarSketchProxy&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;oSk&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Sketches&lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oSk&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oSkProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;oSkProxy&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;Next&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;oWp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkPlanes&lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWp&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWpProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;oWpProxy&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;Next&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;oWt&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkPoints&lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWtProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;oWtProxy&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;Next&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;oWa&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWa&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWaProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;oWaProxy&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;Next&lt;/SPAN&gt;
      
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;o3DProxy&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sketch3DProxy&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;o3D&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Sketches3D&lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;o3D&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;o3DProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;o3DProxy&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;Next&lt;/SPAN&gt;


        &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt; Check to see if this occurrence represents a subassembly &lt;/SPAN&gt;
        &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt; and recursively call this function to traverse through it. &lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;DefinitionDocumentType&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt; 
            &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TraverseAssembly&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;SubOccurrences&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Level&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;/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: #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: #ff0000; font-weight: bold;"&gt;Next&lt;/SPAN&gt; 


&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;End Sub&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 14:12:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9032654#M71695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-18T14:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Turn work features off in patterned components/sub assemblies</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9032903#M71696</link>
      <description>&lt;P&gt;sorry for confusion. corrected code below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 21941 StartFragment: 314 EndFragment: 21909 StartSelection: 314 EndSelection: 314&lt;/P&gt;&lt;PRE&gt;   &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800080; font-weight: bold;"&gt;Main&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&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;catch and skip errors&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;On&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Error&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Resume&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Next&lt;/SPAN&gt;
   
&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&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;oAssyDoc&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
 
 &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt; switch of features and sketches in top level assy &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;oAssyDoc&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;/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;Next&lt;/SPAN&gt;
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;set work axis visibility&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;oWorkAxis&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&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;WorkAxes&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;oWorkAxis&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;Next&lt;/SPAN&gt;
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;set work point visibility&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;oWorkPoint&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&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;WorkPoints&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;oWorkPoint&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;Next&lt;/SPAN&gt;    
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;set sketch visibility&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;oSketch&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&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;Sketches&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;oSketch&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;Next&lt;/SPAN&gt;


  &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
  &lt;SPAN style="color: #800000;"&gt;oAssyDef&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAssyDoc&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: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TraverseAssembly&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oAssyDoc&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;Occurrences&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&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;/SPAN&gt; 
&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;End Sub&lt;/SPAN&gt;  
   
 
  &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Private&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TraverseAssembly&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrences&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;_&lt;/SPAN&gt; 
                             &lt;SPAN style="color: #800000;"&gt;Level&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;Integer&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&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; Iterate through all of the occurrence in this collection.  This &lt;/SPAN&gt;
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt; represents the occurrences at the top level of an assembly. &lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrence&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;oOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt; 
        &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;
        
    &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;Check for virtual components&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;TypeOf&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Is&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;VirtualComponentDefinition&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;    
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Else&lt;/SPAN&gt; 
    
    &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSkProxy&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PlanarSketchProxy&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;oSk&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Sketches&lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oSk&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oSkProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;oSkProxy&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;Next&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;oWp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkPlanes&lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWp&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWpProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;oWpProxy&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;Next&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;oWt&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkPoints&lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWtProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;oWtProxy&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;Next&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;oWa&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWa&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oWaProxy&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;oWaProxy&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;Next&lt;/SPAN&gt;
      

        &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt; Check to see if this occurrence represents a subassembly &lt;/SPAN&gt;
        &lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt; and recursively call this function to traverse through it. &lt;/SPAN&gt;
        &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;DefinitionDocumentType&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt; 
            &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TraverseAssembly&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;SubOccurrences&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Level&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;/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: #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: #ff0000; font-weight: bold;"&gt;Next&lt;/SPAN&gt; 

&lt;SPAN style="color: #800080; font-weight: bold;"&gt;InventorVb&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;DocumentUpdate&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;()&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;End Sub&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 15:47:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/turn-work-features-off-in-patterned-components-sub-assemblies/m-p/9032903#M71696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-18T15:47:25Z</dc:date>
    </item>
  </channel>
</rss>

