<?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: Suppressing derived parts in drawing views in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5545814#M54705</link>
    <description>&lt;P&gt;Hi Darren,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try my VBA code there? You can add the logic for check the derived assembly in the code to make it work for both derived part and assembly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed that in your code, the last argument you use the AssemblyDocument but not ComponentOccurrence in the function&amp;nbsp;HideAllDerivedPartsInSelectedView:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Function HideAllDerivedPartsInSelectedView(ByRef SelectedView As Inventor.DrawingView, ByVal ShowParts As Boolean, &lt;FONT color="#FF0000"&gt;ByRef SubAssemblyDoc As Inventor.AssemblyDocument&lt;/FONT&gt;) As Boolean&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I think what you should pass in is a ComponentOccurrence object for the sub assembly but not the AssemblyDocument object, and also in the code &amp;nbsp;where you iterate the sub-occurrences you should also use the ComponentOccurrence.SubOccurrences to get the&amp;nbsp;&lt;SPAN&gt;ComponentOccurrenceProxy objects and pass in the&amp;nbsp;&lt;SPAN&gt;ComponentOccurrenceProxy for&amp;nbsp;&lt;/SPAN&gt;the&amp;nbsp;SetVisibility method. You can refer to the logic in my VBA code how I iterate&amp;nbsp;the SubOccurrences but not the AssemblyDocument.ComponentDefinition.Occurrences. If you still have problem to update your code please let me know.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2015 02:32:02 GMT</pubDate>
    <dc:creator>YuhanZhang</dc:creator>
    <dc:date>2015-03-18T02:32:02Z</dc:date>
    <item>
      <title>Suppressing derived parts in drawing views</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5527064#M54438</link>
      <description>&lt;P&gt;I have been asked by my users to write an addin to selectively suppress derived parts in drawing views. Let me run a scenario by you and somebody please tell me if this is even possible or not. If it is possible, please help point me in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SCENARIO: I have an assembly that contains multiple derived parts. I have several different drawings that have views that reference this assembly. I want to suppress all the derived parts contained in the assembly in all the views of Drawing #1. I do not want to suppress the derived parts&lt;SPAN&gt; contained in the assembly &lt;/SPAN&gt;in the views of&amp;nbsp;Drawing #2. Is this possible? It is my understanding that the suppression occurrs at the component definition level so I would not be able to have derived parts suppressed in one drawing and not the other if both drawings reference the same assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2015 19:52:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5527064#M54438</guid>
      <dc:creator>dhaverstick</dc:creator>
      <dc:date>2015-03-03T19:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing derived parts in drawing views</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5528793#M54475</link>
      <description>&lt;P&gt;Darren,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not&amp;nbsp;believe that you can suppress the items but you should be able to reach into the view and turn off the visibility.&lt;/P&gt;
&lt;P&gt;Since you can manually perform this, I expect that iLogic would most likely allow you the same capability.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 22:39:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5528793#M54475</guid>
      <dc:creator>bob_holland</dc:creator>
      <dc:date>2015-03-04T22:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing derived parts in drawing views</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5529058#M54477</link>
      <description>&lt;P&gt;You can add new LOD (Level of Detail) and in the LOD you can suppress all the derived part components, and use the LOD for views in the Drawing #1. This won't affect the views in Drawing #2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 04:37:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5529058#M54477</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2015-03-05T04:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing derived parts in drawing views</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5535336#M54562</link>
      <description>&lt;P&gt;Actually, this is the solution I was looking for. It was provided by Xiaodong Liang at the ADN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sub hideCurveOfDerivePart()&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oDrawDoc As DrawingDocument&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set oDrawDoc = ThisApplication.ActiveDocument&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oSheet As Sheet&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set oSheet = oDrawDoc.ActiveSheet&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oView1 As DrawingView&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set oView1 = oSheet.DrawingViews(1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oModelDoc As Document&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set oModelDoc = oView1.ReferencedDocumentDescriptor.ReferencedDocument&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If oModelDoc.DocumentType = kAssemblyDocumentObject Then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oEachOcc As ComponentOccurrence&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For Each oEachOcc In oModelDoc.ComponentDefinition.Occurrences&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'native part document (this part has derived part)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If oEachOcc.ReferencedDocumentDescriptor.ReferencedDocument.DocumentType = kPartDocumentObject Then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oNativePartDoc As PartDocument&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set oNativePartDoc = oEachOcc.ReferencedDocumentDescriptor.ReferencedDocument&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'check if the document has derived part&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If oNativePartDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Count &amp;gt; 0 Then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'hide the occurrence in the context of the drawing view.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Call oView1.SetVisibility(oEachOcc, False)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;End Sub&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 18:12:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5535336#M54562</guid>
      <dc:creator>dhaverstick</dc:creator>
      <dc:date>2015-03-10T18:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing derived parts in drawing views</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5542900#M54658</link>
      <description>&lt;P&gt;Well, I posted the solution I was provided by ADN but I need to clarify that this solution only works in limited instances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the assembly in the drawing view contains a derived part then the solution works for making that part visible or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the assembly in the drawing view contains a sub-assembly that contains a derived part, the solution does not work. In fact, if you drill down to the derived part and try to make it visible or invisible, the following error is generated,&amp;nbsp;"Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have reopened my case with ADN to figure out what is going on but I have not heard back from them yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 15:59:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5542900#M54658</guid>
      <dc:creator>dhaverstick</dc:creator>
      <dc:date>2015-03-16T15:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing derived parts in drawing views</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5543813#M54669</link>
      <description>&lt;P&gt;You can try below updated VBA code if it works, it will iterate all the sub occurrences and hide the derived part components:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub hideCurveOfDerivePart()
    Dim oDrawDoc As DrawingDocument
    Set oDrawDoc = ThisApplication.ActiveDocument
     
    Dim oSheet As Sheet
    Set oSheet = oDrawDoc.ActiveSheet
     
    Dim oView1 As DrawingView
    Set oView1 = oSheet.DrawingViews(1)
     
    Dim oModelDoc As Document
    Set oModelDoc = oView1.ReferencedDocumentDescriptor.ReferencedDocument
     
    If oModelDoc.DocumentType = kAssemblyDocumentObject Then
        Dim oEachOcc As ComponentOccurrence
        
        For Each oEachOcc In oModelDoc.ComponentDefinition.Occurrences
        
            'native part document (this part has derived part)
            If oEachOcc.ReferencedDocumentDescriptor.ReferencedDocument.DocumentType = kPartDocumentObject Then
                Dim oNativePartDoc As PartDocument
                Set oNativePartDoc = oEachOcc.ReferencedDocumentDescriptor.ReferencedDocument
             
                'check if the document has derived part
                If oNativePartDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Count &amp;gt; 0 Then
                    'hide the occurrence in the context of the drawing view.
                    Call oView1.SetVisibility(oEachOcc, False)
                End If
            ElseIf oEachOcc.ReferencedDocumentDescriptor.ReferencedDocument.DocumentType = kAssemblyDocumentObject Then
                Dim oSubOccu As ComponentOccurrence
                For Each oSubOccu In oEachOcc.SubOccurrences
                    HideDerivedComponent oSubOccu, oView1
                Next
            End If
        Next
    End If
End Sub

' Iterate all the sub occurrences and hide the derived part
Sub HideDerivedComponent(oOccu As ComponentOccurrence, oView As DrawingView)
    Dim oEachOcc As ComponentOccurrence
    
    If oOccu.ReferencedDocumentDescriptor.ReferencedDocument.DocumentType = kPartDocumentObject Then
        Dim oNativePartDoc As PartDocument
        Set oNativePartDoc = oOccu.ReferencedDocumentDescriptor.ReferencedDocument
 
        'check if the document has derived part
        If oNativePartDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Count &amp;gt; 0 Then
        'hide the occurrence in the context of the drawing view.
            Call oView.SetVisibility(oOccu, False)
        End If
    ElseIf oOccu.ReferencedDocumentDescriptor.ReferencedDocument.DocumentType = kAssemblyDocumentObject Then
        Dim oSubOccu As ComponentOccurrence
        For Each oSubOccu In oOccu.SubOccurrences
            HideDerivedComponent oSubOccu, oView
        Next
    End If
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 03:17:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5543813#M54669</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2015-03-17T03:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing derived parts in drawing views</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5544538#M54685</link>
      <description>&lt;P&gt;yuhanzhang,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is basically the same as yours except that I also check the&amp;nbsp;DerivedAssemblyComponents.Count. However, as soon as the SetVisibility method is called on an occurrence of a derived component that is in a sub-assembly, the following error is thrown.&amp;nbsp;&lt;BR /&gt;"Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried your code out to see if it works in that situation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    Private Function HideAllDerivedPartsInSelectedView(ByRef SelectedView As Inventor.DrawingView, ByVal ShowParts As Boolean, ByRef SubAssemblyDoc As Inventor.AssemblyDocument) As Boolean
        Dim AssemblyInView As Inventor.AssemblyDocument = Nothing
        Dim AssemblyComponentDefObject As Inventor.AssemblyComponentDefinition = Nothing
        Dim ComponentDefObject As Inventor.PartComponentDefinition = Nothing
        Dim DocumentInView As Inventor.Document = Nothing
        Dim OccurrenceCollection As Inventor.ComponentOccurrences = Nothing
        Dim OccurrenceObject As Inventor.ComponentOccurrence = Nothing
        Dim PartDocumentObject As Inventor.PartDocument = Nothing
        Dim ReferenceComponentCollection As Inventor.ReferenceComponents = Nothing
        Dim ReferencedDocObject As Inventor._Document = Nothing
        Dim ReturnBoolean As Boolean = False

        Try
            If SubAssemblyDoc Is Nothing Then 'This is the first time the routine has been called
                DocumentInView = SelectedView.ReferencedDocumentDescriptor.ReferencedDocument

                If Not TypeOf DocumentInView Is Inventor.AssemblyDocument Then
                    MsgBox("The Document In The View Needs To Be An Assembly!", MsgBoxStyle.Information, "WRONG DOCUMENT TYPE!!!")
                    Exit Try
                End If

                AssemblyInView = CType(DocumentInView, Inventor.AssemblyDocument)
            Else
                AssemblyInView = SubAssemblyDoc
            End If

            AssemblyComponentDefObject = AssemblyInView.ComponentDefinition
            OccurrenceCollection = AssemblyComponentDefObject.Occurrences

            For Each OccurrenceObject In OccurrenceCollection
                If OccurrenceObject.ReferencedDocumentDescriptor Is Nothing Then Continue For

                ReferencedDocObject = OccurrenceObject.ReferencedDocumentDescriptor.ReferencedDocument

                If TypeOf ReferencedDocObject Is Inventor.PartDocument Then
                    PartDocumentObject = CType(ReferencedDocObject, Inventor.PartDocument)
                    ComponentDefObject = PartDocumentObject.ComponentDefinition
                    ReferenceComponentCollection = ComponentDefObject.ReferenceComponents

                    If ReferenceComponentCollection.DerivedPartComponents.Count = 0 And ReferenceComponentCollection.DerivedAssemblyComponents.Count = 0 Then Continue For
                    'show or hide the occurrence of the derived part or assembly
                    SelectedView.SetVisibility(OccurrenceObject, ShowParts)
                ElseIf TypeOf ReferencedDocObject Is Inventor.AssemblyDocument Then
                    'recursively go through the sub assembly and look for derived parts
                    HideAllDerivedPartsInSelectedView(SelectedView, ShowParts, CType(ReferencedDocObject, Inventor.AssemblyDocument))
                End If
            Next

            ReturnBoolean = True
        Catch ex As Exception
            MsgBox(ex.Message)
            ReturnBoolean = False
        Finally
            ReleaseCOMObject(AssemblyInView)
            ReleaseCOMObject(AssemblyComponentDefObject)
            ReleaseCOMObject(DocumentInView)
            ReleaseCOMObject(OccurrenceCollection)
            ReleaseCOMObject(OccurrenceObject)
            ReleaseCOMObject(PartDocumentObject)
            ReleaseCOMObject(ReferencedDocObject)
            GC.WaitForPendingFinalizers()
            GC.Collect()
        End Try

        Return ReturnBoolean
    End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 14:49:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5544538#M54685</guid>
      <dc:creator>dhaverstick</dc:creator>
      <dc:date>2015-03-17T14:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing derived parts in drawing views</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5545814#M54705</link>
      <description>&lt;P&gt;Hi Darren,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try my VBA code there? You can add the logic for check the derived assembly in the code to make it work for both derived part and assembly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed that in your code, the last argument you use the AssemblyDocument but not ComponentOccurrence in the function&amp;nbsp;HideAllDerivedPartsInSelectedView:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Function HideAllDerivedPartsInSelectedView(ByRef SelectedView As Inventor.DrawingView, ByVal ShowParts As Boolean, &lt;FONT color="#FF0000"&gt;ByRef SubAssemblyDoc As Inventor.AssemblyDocument&lt;/FONT&gt;) As Boolean&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I think what you should pass in is a ComponentOccurrence object for the sub assembly but not the AssemblyDocument object, and also in the code &amp;nbsp;where you iterate the sub-occurrences you should also use the ComponentOccurrence.SubOccurrences to get the&amp;nbsp;&lt;SPAN&gt;ComponentOccurrenceProxy objects and pass in the&amp;nbsp;&lt;SPAN&gt;ComponentOccurrenceProxy for&amp;nbsp;&lt;/SPAN&gt;the&amp;nbsp;SetVisibility method. You can refer to the logic in my VBA code how I iterate&amp;nbsp;the SubOccurrences but not the AssemblyDocument.ComponentDefinition.Occurrences. If you still have problem to update your code please let me know.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 02:32:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5545814#M54705</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2015-03-18T02:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Suppressing derived parts in drawing views</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5546580#M54716</link>
      <description>&lt;P&gt;Sorry for not reading Y&lt;SPAN&gt;uhanzhang's &amp;nbsp;code closer. Once I checked the suboccurrences collection, my code worked fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Darren&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:42:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/suppressing-derived-parts-in-drawing-views/m-p/5546580#M54716</guid>
      <dc:creator>dhaverstick</dc:creator>
      <dc:date>2015-03-18T14:42:24Z</dc:date>
    </item>
  </channel>
</rss>

