Escolar Documentos
Profissional Documentos
Cultura Documentos
' Set Reference to the Quantity value of the component from the BOM
Dim oCount As Integer
oCount = oBalloonValueSet.ReferencedRow.BOMRow.ItemQuantity
' MsgBox "Balloon Number: " & oBalloonNumber & " - " & oCount
' If More than One Components, update Balloon with Item Number & Occurance Name
If oCount > 1 Then
oBalloonValueSet.OverrideValue = oBalloonValueSet.Value & " - " & occurrence.Name
Else
' Do Nothing
End If
If oDrawingBOMRow.Custom Then
' The referenced item is a custom parts list row.
' strDisplay = strDisplay & vbNewLine & "Referenced Component(s):"
' strDisplay = strDisplay & vbNewLine & " Custom PartsList Row"
Else
Dim oBOMRow As BOMRow
Set oBOMRow = oDrawingBOMRow.BOMRow
If oDrawingBOMRow.Virtual Then
' The referenced item is a virtual component.
' strDisplay = strDisplay & vbNewLine & " Virtual: " &
oCompDefs.Item(1).DisplayName
Else
' strDisplay = vbNewLine & strDisplay & vbNewLine & " " &
oPartDef.Document.FullDocumentName
End If
End If
' MsgBox strDisplay
Next
Next
End Sub