<?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: List components from content center in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13864002#M177746</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2025-10-23 095557.png" style="width: 548px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1581454i2444AAF627E568C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2025-10-23 095557.png" alt="Capture d’écran 2025-10-23 095557.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Oct 2025 13:56:16 GMT</pubDate>
    <dc:creator>mgrenier2</dc:creator>
    <dc:date>2025-10-23T13:56:16Z</dc:date>
    <item>
      <title>List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13856383#M177642</link>
      <description>&lt;P&gt;I'm trying to list content center components in my assembly. Is there a way to do this? I'm starting to pull my hair off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I have so far&lt;/P&gt;&lt;LI-CODE lang="visual"&gt;Dim oAsmDoc As AssemblyDocument
oAsmDoc = ThisApplication.ActiveDocument

Dim oCompDef As AssemblyComponentDefinition
oCompDef = oAsmDoc.ComponentDefinition

Dim oComp As ComponentOccurrence
Dim report As String = "Content Center components:" &amp;amp; vbCrLf

For Each oComp In oCompDef.Occurrences
    Try
        ' Check if component is from content center
        If oComp.Definition.DocumentDescriptor.IsContentMember Then
            report &amp;amp;= oComp.Name &amp;amp; "  --&amp;gt;  " &amp;amp; oComp.Definition.Document.FullFileName &amp;amp; vbCrLf
        End If
    Catch
        ' Some components may be virtual or not resolved 
    End Try
Next

' Show report
MsgBox(report, vbInformation, "CC List")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 Oct 2025 20:01:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13856383#M177642</guid>
      <dc:creator>mgrenier2</dc:creator>
      <dc:date>2025-10-17T20:01:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13858080#M177655</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11726318"&gt;@mgrenier2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try changing this line:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If oComp.Definition.DocumentDescriptor.IsContentMember Then&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If oComp.Definition.IsContentMember Then&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 06:53:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13858080#M177655</guid>
      <dc:creator>cidhelp</dc:creator>
      <dc:date>2025-10-20T06:53:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13858595#M177660</link>
      <description>&lt;P&gt;Nope, that didn't work. Does it matter if it's a custom(edited) or standard(unedited) cc part?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 12:09:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13858595#M177660</guid>
      <dc:creator>mgrenier2</dc:creator>
      <dc:date>2025-10-20T12:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13858868#M177667</link>
      <description>&lt;P&gt;That property is only accessible when the component occurrence references a part (&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=PartComponentDefinition_IsContentMember" target="_blank" rel="noopener"&gt;PartComponentDefinition.IsContentMember&lt;/A&gt;), not an (assembly or virtual or welds) type component, so some filtering would be necessary to avoid those other types of components.&amp;nbsp; It would also be wise to include filtering to avoid suppressed occurrences, if your assemblies may contain some of them, because accessing the 'Definition' property of a suppressed occurrence will also throw an error.&amp;nbsp;&amp;nbsp;And since that property does not exist under the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=GUID-AssemblyComponentDefinition" target="_blank" rel="noopener"&gt;AssemblyComponentDefinition&lt;/A&gt;&amp;nbsp;type, or the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=GUID-VirtualComponentDefinition" target="_blank" rel="noopener"&gt;VirtualComponentDefinition&lt;/A&gt;&amp;nbsp;type, or the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=GUID-WeldsComponentDefinition" target="_blank" rel="noopener"&gt;WeldsComponentDefinition&lt;/A&gt;&amp;nbsp;type, it will throw an error when you try to access that property from one of them.&amp;nbsp; Another place that can be checked is in the Document.PropertySets collection, because ones created by the Content Center will usually contain 1 or 2 extra PropertySets, just for Content Center related information.&amp;nbsp; Below is a Link to the online API help documentation for the Enum associated with one of those special PropertySets.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=PropertiesForContentLibraryEnum" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=PropertiesForContentLibraryEnum&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; Here is an updated example code to help:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oADoc As AssemblyDocument = TryCast(ThisDoc.Document, Inventor.AssemblyDocument)
If oADoc Is Nothing Then Return
Dim oReport As New System.Text.StringBuilder()
oReport.AppendLine("Content Center Components Report:")
For Each oOcc As ComponentOccurrence In oADoc.ComponentDefinition.Occurrences
	If oOcc.Suppressed Then Continue For
	If Not TypeOf oOcc.Definition Is PartComponentDefinition Then Continue For
	Dim oOccPDef As PartComponentDefinition = oOcc.Definition
	If Not oOccPDef.IsContentMember Then Continue For
	oReport.AppendLine(oOcc.Name &amp;amp; " --&amp;gt; " &amp;amp; oOcc.ReferencedDocumentDescriptor.FullDocumentName)
Next
MsgBox(oReport.ToString(), vbInformation, "CC List")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Oct 2025 14:20:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13858868#M177667</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-10-20T14:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863801#M177736</link>
      <description>&lt;P&gt;I'm just getting an empty MsgBox, besides the title and Content Center Components Report:&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 12:19:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863801#M177736</guid>
      <dc:creator>mgrenier2</dc:creator>
      <dc:date>2025-10-23T12:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863838#M177737</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11726318"&gt;@mgrenier2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Check this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;main&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; =&lt;SPAN&gt;TryCast&lt;/SPAN&gt;(&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;, &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;)
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsseCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOccs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrences&lt;/SPAN&gt; = &lt;SPAN&gt;oAsseCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; 
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oRefDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;AllReferencedDocuments&lt;/SPAN&gt;
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oRefDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt;
			&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;partDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;oRefDoc&lt;/SPAN&gt;
			&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
                    &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; = &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;", "&lt;/SPAN&gt;
            &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
            &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; = &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;partDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
	&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;contentCenter&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Oct 2025 12:46:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863838#M177737</guid>
      <dc:creator>m_baczewski</dc:creator>
      <dc:date>2025-10-23T12:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863881#M177739</link>
      <description>&lt;P&gt;This is exactly what I was hoping to achieve. Thanks you so much!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does list some unwanted components that are not from content center though&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 13:08:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863881#M177739</guid>
      <dc:creator>mgrenier2</dc:creator>
      <dc:date>2025-10-23T13:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863895#M177740</link>
      <description>&lt;P&gt;That's odd, because when I use it on one of my assemblies that contains parts, sub assemblies, and some content center fasteners, I get the expected report containing the component occurrence names followed by the full document name of the CC part they reference.&amp;nbsp; I am using Inventor Pro 2024.4 &amp;amp; Vault Pro 2024, but not sure if that matters though, because the PartComponentDefinition.IsContentMember Property was created back in the 2010 version of Inventor.&amp;nbsp; If I either suppress or delete the content center components, then run the rule again, I also get the result you described (title and first line only).&amp;nbsp; When components are suppressed, then we can not dig down into their definitions to check the value of that property, so they are skipped over.&lt;/P&gt;
&lt;P&gt;However, that simplistic rule only iterates over the 'top level' components, and does not go down into any sub components.&amp;nbsp; So, if all the content center stuff is down within sub assemblies, and you want the rule to find them, then the code would need to be further developed to recurse down into the lower levels of the assembly.&amp;nbsp; If that is what you need, I can help.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WCrihfield_0-1761224581120.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1581427i1DA36EFC2FA926D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WCrihfield_0-1761224581120.png" alt="WCrihfield_0-1761224581120.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 13:13:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863895#M177740</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-10-23T13:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863941#M177742</link>
      <description>&lt;P&gt;Here is a 'recursive' example that will recurse down through all levels of components.&amp;nbsp; This will record an entry for each occurrence in every level of the assembly that is from the content center.&amp;nbsp; If you only need one entry line for each 'referenced document', not from each occurrence, then iterating through the AllReferencedDocuments collection may be a better fit, but would not include the names of the occurrences.&amp;nbsp; There is a way to get what all occurrences reference a specific referenced document through, if that would suit your needs better.&amp;nbsp; We simply don't have all the information about your intentions for this information yet.&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; Another thing to keep in mind is the BOM, and the settings that effect whether components will be included in it or not.&amp;nbsp; The codes shown here so far do not obey or follow the BOM rules, other than Suppression.&amp;nbsp; It pays no attention to the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=BOMStructureEnum" target="_blank" rel="noopener"&gt;BOMStructure&lt;/A&gt; settings (Normal, Reference, Purchased, Phantom, etc.) of each component.&amp;nbsp; If you need it to, then once again, the code would need to be further developed to enable that level of functionality.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub Main
	Dim oADoc As AssemblyDocument = TryCast(ThisDoc.Document, Inventor.AssemblyDocument)
	If oADoc Is Nothing Then Return
	'initialize the global variable that was declared between routines
	oReport = New System.Text.StringBuilder()
	'write heading line into the report
	oReport.AppendLine("Content Center Components Report:")
	'call custom Sub routing to recurse through all components in all levels
	RecurseComponents(oADoc.ComponentDefinition.Occurrences)
	'show report message
	MsgBox(oReport.ToString(), vbInformation, "CC List")
End Sub

'declare this variable between routines to make it globally accessible
Dim oReport As System.Text.StringBuilder

Sub RecurseComponents(occs As Inventor.ComponentOccurrences)
	For Each oOcc As Inventor.ComponentOccurrence In occs
		If oOcc.Suppressed Then Continue For
		If TypeOf oOcc.Definition Is PartComponentDefinition Then
			Dim oOccPDef As PartComponentDefinition = oOcc.Definition
			If oOccPDef.IsContentMember Then
				oReport.AppendLine(oOcc.Name &amp;amp; " --&amp;gt; " &amp;amp; _
				oOcc.ReferencedDocumentDescriptor.FullDocumentName)
			End If
		End If
		If TypeOf oOcc.Definition Is AssemblyComponentDefinition AndAlso
			oOcc.SubOccurrences.Count &amp;gt; 0 Then
			'call this same routine to run on the sub occurrences (recursion)
			RecurseComponents(oOcc.SubOccurrences)
		End If
	Next
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN&gt;&lt;STRONG&gt; ACCEPT SOLUTION &lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 13:34:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863941#M177742</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-10-23T13:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863998#M177745</link>
      <description>&lt;P&gt;I think the issue is that I'm trying to list them from inside of a welded assembly and sh*t hits the fan because of this&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 13:55:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13863998#M177745</guid>
      <dc:creator>mgrenier2</dc:creator>
      <dc:date>2025-10-23T13:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13864002#M177746</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2025-10-23 095557.png" style="width: 548px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1581454i2444AAF627E568C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2025-10-23 095557.png" alt="Capture d’écran 2025-10-23 095557.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 13:56:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13864002#M177746</guid>
      <dc:creator>mgrenier2</dc:creator>
      <dc:date>2025-10-23T13:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865270#M177764</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;main&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; =&lt;SPAN&gt;TryCast&lt;/SPAN&gt;(&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;, &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;)
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsseCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOccs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrences&lt;/SPAN&gt; = &lt;SPAN&gt;oAsseCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; 
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oRefDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;AllReferencedDocuments&lt;/SPAN&gt;
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oRefDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt;
			&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;partDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;oRefDoc&lt;/SPAN&gt;
			&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;partDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;IsContentMember&lt;/SPAN&gt;
				&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
                    &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; = &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;", "&lt;/SPAN&gt;
	            &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	            &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; = &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;partDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;
			&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
	&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;contentCenter&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Oct 2025 11:04:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865270#M177764</guid>
      <dc:creator>mateusz_baczewski</dc:creator>
      <dc:date>2025-10-24T11:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865301#M177765</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11726318"&gt;@mgrenier2&lt;/a&gt;&amp;nbsp;i think that you want to list profiles placed from CC then it this will not work, you can check if that part has property sets named :&amp;nbsp;ContentCenter or&amp;nbsp;Content Library Component Properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; =&lt;SPAN&gt;TryCast&lt;/SPAN&gt;(&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;, &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;)
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsseCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

	
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; 
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oRefDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;AllReferencedDocuments&lt;/SPAN&gt;
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oRefDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt;
			&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;partDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;oRefDoc&lt;/SPAN&gt;
			&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;cc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;""&lt;/SPAN&gt;
			&lt;SPAN&gt;Try&lt;/SPAN&gt;
				&lt;SPAN&gt;cc&lt;/SPAN&gt;=&lt;SPAN&gt;oRefDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"ContentCenter"&lt;/SPAN&gt;).&lt;SPAN&gt;Name&lt;/SPAN&gt;
			&lt;SPAN&gt;Catch&lt;/SPAN&gt; &lt;SPAN&gt;ex&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Exception&lt;/SPAN&gt;
			&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
			
			&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;partDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;IsContentMember&lt;/SPAN&gt; &lt;SPAN&gt;Or&lt;/SPAN&gt; &lt;SPAN&gt;cc&lt;/SPAN&gt;=&lt;SPAN&gt;"ContentCenter"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			
			&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
                    &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; = &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;", "&lt;/SPAN&gt;
            &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
            &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; = &lt;SPAN&gt;contentCenter&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;partDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
	&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;contentCenter&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 11:41:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865301#M177765</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2025-10-24T11:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865317#M177766</link>
      <description>&lt;P&gt;I am not sure why that one property is not working as expected for you, but yet another thought would be to get the full folder path of where your Content Center model files get stored, then as you iterate through referenced files, check if their full file path starts with the path to the Content Center.&amp;nbsp; I think that may only work when your Content Center stuff is not being stored in Vault though.&amp;nbsp; See example below.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub Main
	Dim oADoc As Inventor.AssemblyDocument = TryCast(ThisDoc.FactoryDocument, Inventor.AssemblyDocument)
	If oADoc Is Nothing Then Return
	Dim sCCPath As String = ThisApplication.DesignProjectManager.ActiveDesignProject.ContentCenterPath
	Dim bCCPathIsEmpty As Boolean = String.IsNullOrWhiteSpace(sCCPath)
	Dim oReport As System.Text.StringBuilder = New System.Text.StringBuilder()
	For Each oRefDoc As Inventor.Document In oADoc.AllReferencedDocuments
		If Not TypeOf oRefDoc Is Inventor.PartDocument Then Continue For
		Dim oRefPDoc As Inventor.PartDocument = oRefDoc
		Dim bIsCC As Boolean = oRefPDoc.ComponentDefinition.IsContentMember
		If (Not bIsCC) And (Not bCCPathIsEmpty) Then bIsCC = (oRefPDoc.FullFileName.StartsWith(sCCPath))
		If bIsCC Then
			If oReport.Length = 0 Then oReport.AppendLine("Referenced Content Center Files Report:")
			oReport.AppendLine(oRefPDoc.FullFileName)
		End If
	Next
	MsgBox(vbCrLf &amp;amp; oReport.ToString())
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN&gt;&lt;STRONG&gt; ACCEPT SOLUTION &lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 12:03:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865317#M177766</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-10-24T12:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865344#M177767</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;if i assumed correctly, and i think i did,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11726318"&gt;@mgrenier2&lt;/a&gt;&amp;nbsp;wants to list cc profiles placed in assembly and&amp;nbsp;when you place profiles from CC after you write desired length save window will pop up to save it at chosen location, this means that user can choose project folder (and i think it does), wchich means that code provided by you will not work.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 12:25:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865344#M177767</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2025-10-24T12:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865346#M177768</link>
      <description>&lt;P&gt;Using the file path won't cut it, they're customized content center parts so they don't get saved in the regular content center path, and the path will be different for each projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1734991" target="_self"&gt;&lt;SPAN class=""&gt;marcin_otręba&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;came up with something that worked just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 12:25:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865346#M177768</guid>
      <dc:creator>mgrenier2</dc:creator>
      <dc:date>2025-10-24T12:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865362#M177769</link>
      <description>&lt;P&gt;I was just trying to cover all possible paths forward, and did not know that they were all 'custom' ones, or I would not have suggested it.&amp;nbsp; I did mention the special PropertySets angle back in Message 4, but did not include their names, or a code example going that route, which I should have.&amp;nbsp; Glad something finally worked for you though.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 12:31:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865362#M177769</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-10-24T12:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: List components from content center</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865374#M177770</link>
      <description>&lt;P&gt;No worries guys&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 12:45:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/list-components-from-content-center/m-p/13865374#M177770</guid>
      <dc:creator>mgrenier2</dc:creator>
      <dc:date>2025-10-24T12:45:02Z</dc:date>
    </item>
  </channel>
</rss>

