04-20-2023
03:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-20-2023
03:15 AM
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");
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.