Catia Vba How can I find mass of a Product

120 Views Asked by At

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.

1

There are 1 best solutions below

0
Disvoys On BEST ANSWER

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