On Catia Vba, I want to find mass of a product. Is there any function for the finding mass?
I choose the product after when I run the macro, the result should show me an a message box about mass of the product. Just it how can I learn.
one method among many others. It all depends on what weight you're really looking for.
Sub CATMain()
Dim productDocument As productDocument
Dim product As product
Set productDocument = CATIA.ActiveDocument
Set product = productDocument.product
MsgBox product.Analyze.Mass & " Kg"
End Sub