Component.getPhysicalProperties Method

Parent Object: Component
Defined in namespace "adsk::fusion" and the header file is <Fusion/Components/Component.h>

Description

Returns the PhysicalProperties object that has properties for getting the area, density, mass, volume, moments, etc of this component.

Syntax

"component_var" is a variable referencing a Component object.
# Uses no optional arguments.
returnValue = component_var.getPhysicalProperties()

# Uses optional arguments.
returnValue = component_var.getPhysicalProperties(accuracy)
"component_var" is a variable referencing a Component object.

#include <Fusion/Components/Component.h>

// Uses no optional arguments.
returnValue = component_var->getPhysicalProperties();

// Uses optional arguments.
returnValue = component_var->getPhysicalProperties(accuracy);

Return Value

Type Description
PhysicalProperties Returns a PhysicalProperties object that can be used to get the various physical property related values.

Parameters

Name Type Description
accuracy CalculationAccuracy Specifies the desired level of computational accuracy of the property calculations. The default value of 'LowCalculationAccuracy' returns results within a +/- 1% error margin.

This is an optional argument whose default value is CalculationAccuracy.LowCalculationAccuracy.

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