12-21-2021
03:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-21-2021
03:20 AM
You can try it this way:
Dim doc As AssemblyDocument = ThisDoc.Document Dim refDocs = doc.ComponentDefinition.Occurrences.Cast(Of ComponentOccurrence). Select(Function(occ) occ.ReferencedDocumentDescriptor.ReferencedDocument). Distinct().ToList() For Each refDoc As Document In refDocs Logger.Info(refDoc.DisplayName) Next
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com