Professional Documents
Culture Documents
Sub CATMain
Sub CATMain
GetNextNode CATIA.ActiveDocument.Product
End Sub
Dim I As Integer
Pt = 0
vt = 1
' Loop through every tree node for the current product
For q = 1 To oCurrentProduct.Products.Count
dbc = 0
GetNextNode oCurrentTreeNode
End If
End If
iname = oCurrentProduct.Products.Item(q).Name
'oCurrentProduct.Products.Item (i)
Dim oSelection
Dim Measurecircle
part1.Update
pname = partDocument1.Product.PartNumber
Set osel = CATIA.ActiveDocument.Selection
osel.Add oCurrentProduct.Products.Item(q)
Oselection2.Search "Topology.Face.Color='(255,255,0)',sel"
For I = 1 To Oselection2.Count
threadfaces.Add Oselection2.Item2(I).Reference
Next
osel.Add oCurrentProduct.Products.Item(q)
Oselection3.Search "Topology.Face.Color='(0,0,255)',sel"
For I = 1 To Oselection3.Count
dowelfaces.Add Oselection3.Item2(I).Reference
Next
osel.Add oCurrentProduct.Products.Item(q)
Oselection5.Search "Topology.Face.Color='(0,175,175)',sel"