Hi gays!
I have Question.
this picture One Product and sub part exist.
i wanna counting catpart.
this picture is Bom
i wanna msgbox show redbox contents.
below my script help me.
Public uPartCounter As Integer
Public prodArray() As String
Public compArray() As String
Public ProdName, compName As String
Public partcounter As Long
Sub
CATMain()
upartcounter = 0
Dim oMyProduct As Product
Set oMyProduct = CATIA.ActiveDocument.Product
upartcounter = oMyProduct.PartNumber
Dim iLevel As Integer
iLevel = -1
partCounter = 1
Dim x, m As Integer
m = UBound(prodArray)
For x = 1 To m
ProdName = prodArray(x)
compName = compArray(x)
partcounter = partcounter + 1
mgsbox “The total number of unique parts is: ” & upartcounter
end sub