Hey Guys, I thought this might have been straight forward but I'm having a bit of trouble. I want the user to have a set of occurrences selected and click a button to run code on them but I can't seem to find a method of getting the names or anything else on the actively selected parts. Any direction on this would be appreciated plz.
Cheers!
Solved! Go to Solution.
Solved by andrewwhiteinc. Go to Solution.
As it was straight forward. For future reference of anyone searching here it is:
Dim oDoc As AssemblyDocument
Dim oCol As New Collection
oDoc = oINV.ActiveDocument
For i = 1 To oDoc.SelectSet.Count
oCol.Add(oDoc.SelectSet.Item(i))
Next
For Each part In oCol
oINV.Documents.Open(part.ReferencedDocumentDescriptor.ReferencedFileDescriptor.FullFileName, True)
Next