Hi guys,
i'm trying to develop a simple code to count the number of solid elements in the my main body.
The problem is, it only returns the number 1.
If any of you can help me. Thx a lot
Sub CATMain()
Dim MyPart As Part
Dim MyBodies As Bodies
Set MyPart = CATIA.ActiveDocument.Part
Set MyBodies = MyPart.Bodies
MsgBox (MyBodies.Count)
End Sub
i'm trying to develop a simple code to count the number of solid elements in the my main body.
The problem is, it only returns the number 1.
If any of you can help me. Thx a lot
Sub CATMain()
Dim MyPart As Part
Dim MyBodies As Bodies
Set MyPart = CATIA.ActiveDocument.Part
Set MyBodies = MyPart.Bodies
MsgBox (MyBodies.Count)
End Sub