PhysicalProperties.getXYZMomentsOfInertia Method
Parent Object:
PhysicalPropertiesDefined in namespace "adsk::fusion" and the header file is <Fusion/Fusion/PhysicalProperties.h>
Description
Method that gets the moment of inertia about the world coordinate system. Unit for returned values is kg*cm^2.
Syntax
"physicalProperties_var" is a variable referencing a PhysicalProperties object.
(returnValue, xx, yy, zz, xy, yz, xz) = physicalProperties_var.getXYZMomentsOfInertia() |
#include <Fusion/Fusion/PhysicalProperties.h
// Declare the output arguments. double xx; double yy; double zz; double xy; double yz; double xz; boolean returnValue = physicalProperties_var->getXYZMomentsOfInertia(xx, yy, zz, xy, yz, xz);
|
Return Value
| boolean |
Returns true if successful |
Parameters
| xx |
double |
Output Double that returns the XX partial moment. |
| yy |
double |
Output Double that returns the YY partial moment. |
| zz |
double |
Output Double that returns the ZZ partial moment. |
| xy |
double |
Output Double that returns the XY partial moment. |
| yz |
double |
Output Double that returns the YZ partial moment. |
| xz |
double |
Output Double that returns the XZ partial moment. |
Samples
| Get Physical Properties API Sample |
Script that demonstrates getting physical properties using the API. When this script is run it will create a new document, build a simple model, and get the various physical properties from the model. |
Version
Introduced in version May 2016