PhysicalProperties.getRotationToPrincipal Method

Parent Object: PhysicalProperties
Defined 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

Type Description
boolean Returns true if successful

Parameters

Name Type Description
rx double
ry double
rz double

Samples

Name Description
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