PhysicalProperties.getRotationToPrincipal Method
Parent Object:
PhysicalPropertiesDefined in namespace "adsk::fusion" and the header file is <Fusion/Fusion/PhysicalProperties.h>
Description
Gets the rotation from the world coordinate system of the target to the principal coordinate system.
Syntax
"physicalProperties_var" is a variable referencing a PhysicalProperties object.
(returnValue, rx, ry, rz) = physicalProperties_var.getRotationToPrincipal() |
#include <Fusion/Fusion/PhysicalProperties.h
// Declare the output arguments. double rx; double ry; double rz; boolean returnValue = physicalProperties_var->getRotationToPrincipal(rx, ry, rz);
|
Return Value
| boolean |
Returns true if successful |
Parameters
| rx |
double |
|
| ry |
double |
|
| rz |
double |
|
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