Get model values

Get model values

westdvina
Observer Observer
331 Views
1 Reply
Message 1 of 2

Get model values

westdvina
Observer
Observer

Is it possible to obtain model values using python script, for example volume and surface area?

0 Likes
332 Views
1 Reply
Reply (1)
Message 2 of 2

BrianEkins
Mentor
Mentor

From a Component object you can get the bodies it contains through the BRepBodies collection.  Each BRepBody object supports the area and volume properties.  The area property returns the surface area of the entire body in square centimeters and the volume property returns the volume of the body, if it's a solid body, in cubic centimeters.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes