<?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: How to get Document Object for all components in an assembly or a weldment? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10822130#M132550</link>
    <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5513069"&gt;@j.pavlicek&lt;/a&gt;.&amp;nbsp; The best way to know for sure about these sorts of things is to investigate them.&amp;nbsp; If you have large and complex assemblies in which many of the files may have various other types of documents attached to them, and you are unsure about if all documents returned by the 'ReferencedDocuments' will return any of those other types of documents, then I would suggest setting up a loop of those documents that checks the document type of each one and uses a feedback message or makes log entries inside of the loop that will report to you what it finds.&amp;nbsp; But beyond that, here is one of those 'fancy' codes that uses the IEnumerable functionality to filter the collection to only AssemblyDocuments and PartDocuments.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oADoc As AssemblyDocument = ThisApplication.ActiveDocument
Dim oAllModelDocs As IEnumerable(Of Inventor.Document) = oADoc.ReferencedDocuments.Cast(Of Inventor.Document) _
.Where(Function(d) d.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Or _
d.DocumentType = DocumentTypeEnum.kPartDocumentObject)
'now you can use that oAllModelDocs variable here&lt;/LI-CODE&gt;
&lt;P&gt;This filtering code does not attempt to filter out things like Content Center stuff, iPart/iAssembly/ModelState member type documents (vs FactoryDocument), or other such things though.&amp;nbsp; If you want to be more thorough though, you will probably just have to use a traditional loop with more filtering check type codes within, to make sure you are left with only the ones you want.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Dec 2021 13:01:21 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2021-12-14T13:01:21Z</dc:date>
    <item>
      <title>How to get Document Object for all components in an assembly or a weldment?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10821760#M132539</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;what is proper way to obtain Document Objects for all components of given Assembly or Weldment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know about&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-719AD235-B625-4C50-90FB-949292F24735" target="_blank" rel="noopener"&gt;AssemblyDocument.ReferencedDocuments Property&lt;/A&gt;&amp;nbsp;but this returns not only component document, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for suggestions!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 09:59:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10821760#M132539</guid>
      <dc:creator>j.pavlicek</dc:creator>
      <dc:date>2021-12-14T09:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Document Object for all components in an assembly or a weldment?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10822130#M132550</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5513069"&gt;@j.pavlicek&lt;/a&gt;.&amp;nbsp; The best way to know for sure about these sorts of things is to investigate them.&amp;nbsp; If you have large and complex assemblies in which many of the files may have various other types of documents attached to them, and you are unsure about if all documents returned by the 'ReferencedDocuments' will return any of those other types of documents, then I would suggest setting up a loop of those documents that checks the document type of each one and uses a feedback message or makes log entries inside of the loop that will report to you what it finds.&amp;nbsp; But beyond that, here is one of those 'fancy' codes that uses the IEnumerable functionality to filter the collection to only AssemblyDocuments and PartDocuments.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oADoc As AssemblyDocument = ThisApplication.ActiveDocument
Dim oAllModelDocs As IEnumerable(Of Inventor.Document) = oADoc.ReferencedDocuments.Cast(Of Inventor.Document) _
.Where(Function(d) d.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Or _
d.DocumentType = DocumentTypeEnum.kPartDocumentObject)
'now you can use that oAllModelDocs variable here&lt;/LI-CODE&gt;
&lt;P&gt;This filtering code does not attempt to filter out things like Content Center stuff, iPart/iAssembly/ModelState member type documents (vs FactoryDocument), or other such things though.&amp;nbsp; If you want to be more thorough though, you will probably just have to use a traditional loop with more filtering check type codes within, to make sure you are left with only the ones you want.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 13:01:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10822130#M132550</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-12-14T13:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Document Object for all components in an assembly or a weldment?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835385#M132817</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;Are you sure that &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-719AD235-B625-4C50-90FB-949292F24735" target="_blank" rel="noopener"&gt;AssemblyDocument.ReferencedDocuments&lt;/A&gt; set is equal to (component documents) set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because when I create an empty Assembly (with no components) and link some parameter from external file, this file document is returned in&amp;nbsp;AssemblyDocument.ReferencedDocuments&amp;nbsp;although it is not definitely a component!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider this code:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim AsDoc As AssemblyDocument = ThisDoc.Document
For Each Doc In AsDoc.ReferencedDocuments
  Logger.Info(Doc.DisplayName)	
Next Doc&lt;/LI-CODE&gt;&lt;P&gt;And it's output in an empty Assembly with linked parameter&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jpavlicek_0-1640075719642.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1003586i9A2E7AB12284111E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jpavlicek_0-1640075719642.png" alt="jpavlicek_0-1640075719642.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 08:35:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835385#M132817</guid>
      <dc:creator>j.pavlicek</dc:creator>
      <dc:date>2021-12-21T08:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Document Object for all components in an assembly or a weldment?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835617#M132824</link>
      <description>&lt;P&gt;You can try it this way:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;doc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;refDocs&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Cast&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;Of&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ComponentOccurrence&lt;/SPAN&gt;).
    &lt;SPAN style="color: #db9652;"&gt;Select&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;Function&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;occ&lt;/SPAN&gt;) &lt;SPAN style="color: #db9652;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ReferencedDocument&lt;/SPAN&gt;).
    &lt;SPAN style="color: #db9652;"&gt;Distinct&lt;/SPAN&gt;().&lt;SPAN style="color: #db9652;"&gt;ToList&lt;/SPAN&gt;()

&lt;SPAN style="color: #ce5c95;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;refDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;Document&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;refDocs&lt;/SPAN&gt;
    &lt;SPAN style="color: #9d6bce;"&gt;Logger&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Info&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;refDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;DisplayName&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Dec 2021 11:20:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835617#M132824</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2021-12-21T11:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Document Object for all components in an assembly or a weldment?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835660#M132828</link>
      <description>&lt;P&gt;Thanks for you reply! I did same assumption - iterate over ComponentDefinition.Occurrences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me to understand to this part of code?&lt;/P&gt;&lt;PRE&gt;.&lt;SPAN&gt;Cast&lt;/SPAN&gt;(&lt;SPAN&gt;Of&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;).&lt;BR /&gt;&lt;SPAN&gt;Select&lt;/SPAN&gt;(&lt;SPAN&gt;Function&lt;/SPAN&gt;(&lt;SPAN&gt;occ&lt;/SPAN&gt;) &lt;SPAN&gt;occ&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;).
&lt;SPAN&gt;Distinct&lt;/SPAN&gt;().&lt;SPAN&gt;ToList&lt;/SPAN&gt;()&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.cast?view=net-6.0" target="_blank" rel="noopener"&gt;Cast()&lt;/A&gt;, &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.select?view=net-6.0" target="_blank" rel="noopener"&gt;Select()&lt;/A&gt;, &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.distinct?view=net-6.0" target="_blank" rel="noopener"&gt;Distinct()&lt;/A&gt; and &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.tolist?view=net-6.0" target="_blank" rel="noopener"&gt;ToList()&lt;/A&gt;&amp;nbsp;look like&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable?view=net-6.0" target="_blank" rel="noopener"&gt;Enumerable Class&lt;/A&gt;&amp;nbsp;methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Cast is used here because if we are trying "to extract" items of&amp;nbsp;ComponentDefinition.Occurrences but not using &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-BE95F126-E4F0-4042-BF89-4FD8F95486DD" target="_blank" rel="noopener"&gt;Item Property&lt;/A&gt;, it doesn't know about it's type?&lt;/LI&gt;&lt;LI&gt;Select is&amp;nbsp; using &lt;A href="https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/procedures/lambda-expressions" target="_blank" rel="noopener"&gt;lambda function&lt;/A&gt;&amp;nbsp;(for each item "extracted by Cast") which returns ReferencedDocumentDescriptor.ReferencedDocument?&lt;/LI&gt;&lt;LI&gt;Distinct is there to "filter out duplicity"?&lt;/LI&gt;&lt;LI&gt;ToList "packs" all these Documents into a &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1?view=net-6.0" target="_blank" rel="noopener"&gt;List&lt;/A&gt;?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 12:07:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835660#M132828</guid>
      <dc:creator>j.pavlicek</dc:creator>
      <dc:date>2021-12-21T12:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Document Object for all components in an assembly or a weldment?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835699#M132831</link>
      <description>&lt;UL&gt;&lt;LI&gt;.Cast(of ComponentOccurrence)&lt;UL&gt;&lt;LI&gt;Converts the ComponentOccurrence&lt;U&gt;&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/U&gt; object to the object&amp;nbsp; IEnumerable(of &lt;STRONG&gt;ComponentOccurrence&lt;/STRONG&gt;). That allows us to use the LINQ functions of vb.net&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;.Select(Function(occ) occ.ReferencedDocumentDescriptor.ReferencedDocument)&lt;UL&gt;&lt;LI&gt;This will create an IEnumerable(of &lt;STRONG&gt;Document&lt;/STRONG&gt;). The documents are selected from the occurrences.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Distinct()&lt;UL&gt;&lt;LI&gt;Will remove all duplicates from the list. You will have duplicates if you use 1 document for multiple occurrences&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;.ToList()&lt;UL&gt;&lt;LI&gt;This will convert the object IEnumerable(of &lt;STRONG&gt;Document&lt;/STRONG&gt;) to a List(of &lt;STRONG&gt;Document&lt;/STRONG&gt;). Strictly this is not needed as you can loop over an IEnumerable(of &lt;STRONG&gt;Document&lt;/STRONG&gt;) but because LINQ is lazy it will only do all the above when you create a list. (or start using the&amp;nbsp;IEnumerable like in a for/each loop). I experienced some extra performances when I used a List instead of the IEnumerable&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 12:29:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835699#M132831</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2021-12-21T12:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Document Object for all components in an assembly or a weldment?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835710#M132833</link>
      <description>Thank you very much!</description>
      <pubDate>Tue, 21 Dec 2021 12:32:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835710#M132833</guid>
      <dc:creator>j.pavlicek</dc:creator>
      <dc:date>2021-12-21T12:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Document Object for all components in an assembly or a weldment?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835752#M132837</link>
      <description>&lt;P&gt;Just a little note:&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;'s code returns List(of Object), so if you want a different type, you need to put another Cast(of DesiredType) before ToList().&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 12:55:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835752#M132837</guid>
      <dc:creator>j.pavlicek</dc:creator>
      <dc:date>2021-12-21T12:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Document Object for all components in an assembly or a weldment?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835777#M132839</link>
      <description>&lt;P&gt;the problem here is that:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;occ.ReferencedDocumentDescriptor.ReferencedDocument&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;returns an object instead of a document (as you might expect). Anyway, the following might be a bit cleaner code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;doc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;refDocs&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Cast&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;Of&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ComponentOccurrence&lt;/SPAN&gt;).
    &lt;SPAN style="color: #db9652;"&gt;Select&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;SPAN style="color: #ce5c95;"&gt;Of&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;Document&lt;/SPAN&gt;)&lt;/STRONG&gt;(&lt;SPAN style="color: #ce5c95;"&gt;Function&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;occ&lt;/SPAN&gt;) &lt;SPAN style="color: #db9652;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ReferencedDocument&lt;/SPAN&gt;).
    &lt;SPAN style="color: #db9652;"&gt;Distinct&lt;/SPAN&gt;().&lt;SPAN style="color: #db9652;"&gt;ToList&lt;/SPAN&gt;()

&lt;SPAN style="color: #ce5c95;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;refDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;Document&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;refDocs&lt;/SPAN&gt;
    &lt;SPAN style="color: #9d6bce;"&gt;Logger&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Info&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;refDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;DisplayName&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 13:07:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-get-document-object-for-all-components-in-an-assembly-or/m-p/10835777#M132839</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2021-12-21T13:07:17Z</dc:date>
    </item>
  </channel>
</rss>

