Message 1 of 2
Get Mass and Area with Inventor Apprentice

Not applicable
06-02-2019
10:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need some help in retrieve mass and area value with Inventor Apprentice.
Below is the code to retrieve volume.
ApprenticeServerComponent apprentice = new ApprenticeServerComponent();
ApprenticeServerDocument input = apprentice.Open(@"C:\Files\Input\test.ipt");
SurfaceBody body = input.ComponentDefinition.SurfaceBodies[1];
Debug.Print(System.Convert.ToString(body.Volume[0.1]));
Can anyone suggest how to get mass and area?