Message 1 of 3
Apprentice Server Duplicate Referenced Files With Model States
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Would anyone be able to explain why this VB.net is returning the same document twice when I activate model state on one occurrence of the part? In other words, the assembly with two occurrences of the part where the part is in the master model state in both occurrences works as expected. It is only added to the list one time.
Attached are two assemblies.
-000.iam will cause -101 to show up twice in my list.
-001.iam will only show -101 once in my list which is correct.
'Open the selected Files
openedDoc = apprentice.Open(selectedFile)
Dim currentFile As Inventor.ApprenticeServerDocument
For Each currentFile In openedDoc.AllReferencedDocuments
'Make sure the version is current
If currentFile.NeedsMigrating = True Then
addUnmigratedFile(currentFile.FullFileName)
End If
'Add the file to the listbox
listboxFileView.Items.Add(currentFile.FullFileName)
Next