sanders720
Programmer
I have a function like this:
GetPartProperties
.
.
.
Call GetComponents(oApprenticeServerDoc.ComponentDefinition.Occurrences)
Public Sub GetComponents(ByRef CompCollection As InventorApprentice.ComponentOccurrences)
' Interate through the components as InventorApprentice.ComponentOccurrence
For Each xCompOccurrence In CompCollection
.
.
.
If xCompOccurrence.DefinitionDocumentType = 12291 Then
SUBA = xCompOccurrence.Name
Q = -1
Call GetSubComponents(xCompOccurrence.Definition.Occurrences)
End If
Next
End Sub
.
.
.
Public Sub GetSubComponents(ByRef CompCollection As InventorApprentice.ComponentOccurrences)
.
.
.
Next
End Sub
GetPartProps goes to the function GetComponents. If the component is another assembly, then it is supposed to run GetSubComponents. All this works, except that after GetSubComponents is run, it never goes back to GetComponents to get the next one.
Any thoughts, and thanks for the help!
GetPartProperties
.
.
.
Call GetComponents(oApprenticeServerDoc.ComponentDefinition.Occurrences)
Public Sub GetComponents(ByRef CompCollection As InventorApprentice.ComponentOccurrences)
' Interate through the components as InventorApprentice.ComponentOccurrence
For Each xCompOccurrence In CompCollection
.
.
.
If xCompOccurrence.DefinitionDocumentType = 12291 Then
SUBA = xCompOccurrence.Name
Q = -1
Call GetSubComponents(xCompOccurrence.Definition.Occurrences)
End If
Next
End Sub
.
.
.
Public Sub GetSubComponents(ByRef CompCollection As InventorApprentice.ComponentOccurrences)
.
.
.
Next
End Sub
GetPartProps goes to the function GetComponents. If the component is another assembly, then it is supposed to run GetSubComponents. All this works, except that after GetSubComponents is run, it never goes back to GetComponents to get the next one.
Any thoughts, and thanks for the help!