06-14-2022
12:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-14-2022
12:22 PM
you could use the AllReferencedOccurrences. Some thing like this:
Dim doc As AssemblyDocument = ThisDoc.Document Dim def As AssemblyComponentDefinition = doc.ComponentDefinition For Each refDoc As Document In doc.AllReferencedDocuments Dim newDoc As Document = CreateNewDoc(refDoc) Dim occs = def.Occurrences.AllReferencedOccurrences(refDoc) For Each occ As ComponentOccurrence In occs occ.ReferencedFileDescriptor.ReferencedDocument(....) Next 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