Apprentice Server Duplicate Referenced Files With Model States

Apprentice Server Duplicate Referenced Files With Model States

chrisw01a
Collaborator Collaborator
193 Views
2 Replies
Message 1 of 3

Apprentice Server Duplicate Referenced Files With Model States

chrisw01a
Collaborator
Collaborator

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

 

 

0 Likes
194 Views
2 Replies
Replies (2)
Message 2 of 3

chrisw01a
Collaborator
Collaborator

Entire project attached here.

0 Likes
Message 3 of 3

chrisw01a
Collaborator
Collaborator

chrisw01a_0-1694724381916.png

 

0 Likes