Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Andrii_Humeniuk
in reply to: nnikbin

Hello. Everything works for me. Here is a piece of code in C#:

 

PartDocument oDoc = m_InvApp.ActiveDocument as PartDocument;
PartComponentDefinition oDef = oDoc.ComponentDefinition;
MessageBox.Show(oDef.SurfaceBodies[1].MassProperties.Mass + " kg", "MassBody");

 Screenshot 2023-04-20 131335.png

Andrii Humeniuk - CAD Coordinator, Autodesk Certified Instructor

LinkedIn | My free Inventor Addin | My Repositories

Did you find this reply helpful ? If so please use the Accept as Solution/Like.

EESignature